Skip to content

Admin Panel: Document super delete #1020

@Mythie

Description

@Mythie

Currently a document can't be deleted from Documenso permanently, this is done intentionally since even if an owner deletes a document the recipients still have a partial stake in it and thus should always be able to view it on Documenso.

That said bad actors may use the system and send documents that are spam or designed to trick users, self-hosters may also have also have sent a slew of testing documents which they now want to clean up as they move to production.

Instead of doing this manually in the database which is high risk and prone to error we should offer a way to delete the document within the current admin panel. This should require a confirmation before deletion can take place.

Requirements:

  • Add a button to the admin/documents/[id] page to super delete the document
  • Have the button trigger a dialog prompting for confirmation of deletion
  • Optional: Email the document owner letting them know that their document was removed (maybe state a reason?)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions