Skip to content

Trash

Soft-delete management. Deleted entities (projects, tasks, teams) are moved to trash and can be restored or permanently deleted.

API Endpoints

MethodPathAuthDescription
GET/api/trashYesList deleted items
POST/api/trash/:entityType/:entityId/restoreYesRestore item
DELETE/api/trash/:entityType/:entityIdYesPermanent delete

Supported Entity Types

  • project
  • task
  • team

Frontend

The trash view is accessible from the sidebar. It lists all deleted items with their original names, deletion dates, and actions.

typescript
const store = useTrashStore()
const { items } = storeToRefs(store)

await store.fetch()
await store.restore(entityType, entityId)
await store.permanentDelete(entityType, entityId)