Delete A File/ Multiple Files

delete
/api/v1/{entity-type}/{entity-id}/{property}/documents/{document-id}
Parameters
Path
entity-type*
Entity type for which the template will be uploaded
entity-id*
Entity ID for mentioned Entity Type
property*
any String for eg templates for uploading html template
document-id
ID of document that was uploaded. If this is not provided, entire directory that holds any no of files will be deleted
Header
authorization
Set to Bearer {access-token} if roles in schema is not anonymous. Else authorization can be empty
Responses
200: OK
Success in deleting a/multiple files

Usage

cURL

curl --location \
--request DELETE '{registry-url}/api/v1/{entity-type/{entity-id}/{property}/documents/{document-id}' \
--header 'Authorization: Bearer {access-token}'

HTTPie

http DELETE '{registry-url}/api/v1/{entity-type/{entity-id}/{property}/documents/{document-id}' \
Authorization:'Bearer {access-token}'
{registry-url} is usually http://localhost:{port}. The port can be found under the registry section in the docker-compose.yml file and is usually 8081.