action contract_p_delete_inbox_document_resource { label: "Delete documents" description: "in the given inbox.\n\nhow 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\nwhat parameter: if what == \"DONE\", we will only delete files which have status_data.feedback == True\nif what == \"ALL\" we will delete all files\n\nStart_date and end_date: when specified we will only delete files which are received after (respectively before) the timestamp\n\n**WARNING** This will completely remove the documents, this is **not recoverable**" provider: contract_p method: DELETE path: "/inboxes/{inbox_id}/documents" encoding: json input: { type: "object" properties: { end_date: { type: "string" format: "date-time" } how: { type: "string" enum: ["FULL", "SOURCE_FILES"] } start_date: { type: "string" format: "date-time" } what: { type: "string" enum: ["ALL", "DONE"] } } additionalProperties: false } output: { type: "object" additionalProperties: true } }