Delete document
Permanently deletes a document from the workspace. This operation is irreversible.
Authorization: Requires document editor or workspace manager permissions. Warning: This operation will permanently remove the document and its content.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the organization Standard identifier pattern for resource names
^[a-zA-Z0-9_ -]+$The unique identifier of the workspace
Workspace name pattern. Allows any character except / (would split the FGA resource path — see ResourceIdentifier.parseFromFga) and * (FGA wildcard). 1-63 chars.
^(?!.*\*)(?!.*[/]).{1,63}$The path to the document within the workspace Document path. Permits alphanumerics, spaces, ASCII hyphen, Unicode en-dash/em-dash (U+2013/U+2014), and common title punctuation (& : , ' + ? ! ( ) $ ^). Bans path traversal (..). Length capped at 255 to match the underlying varchar(255) storage column. % is deliberately excluded because @InitBinder decodes %2F → / in path variables to fix encoded-slash routing, which would collide with any path that legitimately contained '%2F'.
255^(?!.*\.\.)[a-zA-Z0-9_/. \-&:,'+?!()$^–—]+$Response
Document deleted successfully