Delete account document type
delete-account-document-typeRemove a document type from the account, whether it is one of the account's own types or one of fynk's system document types.
Use this tool when:
The user explicitly asks to delete or remove a document type
document_type_uuid comes from list-account-document-types, and the user must have made clear which type they
mean - either by naming it, or because it is the type this conversation has been about. Ask which one they mean
when that is not clear, offering the candidates by name.
What removing a type does depends on what list-account-document-types reports for it. A type the account created
itself, without provided_by_fynk, is deleted for good. One of fynk's own types, with provided_by_fynk, is
deactivated instead: it disappears from the account but can be brought back as fynk provides it with
update-account-document-type and reactivate: true. A customised type loses its customisation either way, so
tell the user so before going ahead with one.
A type that documents or templates still use cannot be removed. The refusal says how many use it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_type_uuid | Yes | Uuid of the document type to remove, from list-account-document-types |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted_document_type | No | The account's own document type, as it was before it was deleted for good. Present only when one of the account's own types was removed | |
| deactivated_document_type | No | One of fynk's document types, now deactivated for this account. Present only when one of fynk's types was removed |