action contract_p_delete_document_delete_resource { label: "Delete the document" description: "how parameter: if how == \"FULL\", we delete the entire document, including its source files\nif how == \"SOURCE_FILES\", we only remove the (source) files and we set the archived flag. In practice this means\nall information in the database (json) remains available, but you can no longer download / visualise the original document.\n\n**WARNING** The removal (of source files and in the database) is permanent\n\n\n**Permission required:** review" provider: contract_p method: DELETE path: "/documents/{document_id}" encoding: json input: { type: "object" properties: { how: { type: "string" enum: ["FULL", "SOURCE_FILES"] } } additionalProperties: false } output: { type: "object" additionalProperties: true } }