DELETE
Delete an entry document (organization)
Organization space Accounting module Cannot be undone For: Accountant · Permission: entry_attachments.delete Conditions
  • The accounting module must be included in the plan of the organization.
  • In the organization space the caller needs an accounting access grant on the book named in the URL.
  • The book must be set up for accounting (it must have at least one journal).
  • The document must belong to the selected book.
  • The fiscal period of the entry must be open: once it is closed its documents are kept and the call is refused.
  • When the stored file is already missing from the disk, the record is still removed but the call answers 404.
What else happens
  • Deletes the document record for good.
  • Deletes the stored file from the disk after the record is removed.
  • The attachments_count shown on the journal entry, counted when the entry is read, no longer includes the document.
Part of Record and correct entries.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

attachment
string
required

Identifier of the entry document (27-character KSUID). In the organization-space path the first {attachment} segment is the accounting book identifier and the second is the document identifier.

Query Parameters

response
enum<string>
default:none

Response mode. Default none; none answers 204 No Content.

Available options:
none

Response

No Content (response mode none).