Delete an uploaded context file permanently
You can permanently delete a context file using the REST API if you want to optimize storage.
Before you begin Copy linkLink copied!
- You must have
files:deletepermission for the project. - You must know the file ID (UUID).
About this task Copy linkLink copied!
Deleting a context file hard-deletes its FileMetadata record and performs a best-effort deletion of the original and converted storage objects. However, it does not unbind the file from existing workflows. Any workflow task agent node previously linked to the file will retain its file UUID.
Procedure
Results Copy linkLink copied!
- Confirm the file no longer exists. The expected response is
404 Not Found:curl -X GET "https://<host>/api/v1/files/<file-id>" \ -H "Authorization: Bearer <token>" -
Check that workflow definitions no longer reference the file ID.