Skip to content

feat(files): add file deletion endpoint #96

Description

@martsokha

Context

Files have create/list/read but no delete endpoint. Document deletion is needed for data retention enforcement and user-initiated cleanup.

Requirements

  • DELETE /files/{fileId}/ endpoint
  • Soft delete by default (sets deleted_at timestamp)
  • Permanent removal handled by retention enforcement (see data retention issue)
  • Authorization: file owner or workspace admin
  • Deletion cascades to annotations attached to the file
  • Deletion recorded in the activity audit trail

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    featrequest for or implementation of a new featuregood first issuesimple and well-defined issue, good for newcomersnatsmessaging, job queues, object storagepostgresORM, models, queries, migrationsserverAPI handlers, middleware, auth

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions