DELETE
Delete an entry document (client account)
Client 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 client space the book is always the client account’s own book.
  • 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).

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).