Trash
Soft-delete management. Deleted entities (projects, tasks, teams) are moved to trash and can be restored or permanently deleted.
API Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/trash | Yes | List deleted items |
POST | /api/trash/:entityType/:entityId/restore | Yes | Restore item |
DELETE | /api/trash/:entityType/:entityId | Yes | Permanent delete |
Supported Entity Types
projecttaskteam
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)