User Guide Data Administration File Upload and Download Utility Deleting A File Deleting a File Using Filename 3.3.5.3 Deleting a File Using Filename Delete a file from the object store, using the file name as the reference. To delete a file: Open a relevant tool, such as via cURL command. Prepare a cURL command with the authentication token and other details. For more information refer to the following code. Syntax curl -k --location --request POST 'https://<hostname>/<TENANT-ID>/utils-service/v1/file/deletefilename/{filename}?prefix=<foldername> --header 'ofs_remote_user: <USERID>' \ --header 'locale: en-US' \ --header 'ofs_tenant_id: <TENANT-ID>' \ --header 'ofs_workspace_id: WS001' \ --header 'content-type: application/json' \ --header 'Authorization: Bearer <TOKEN>' Note:Prefix is an optional parameter. Example (truncated)curl -k --location --request POST 'https://<hostname>/<TENANT-ID>/utils-service/v1/file/deletefilename/test.txt?prefix=folder1 --header 'ofs_remote_user: cneadmin' \ --header 'locale: en-US' \ --header 'ofs_tenant_id: aaitestdev1001-prd' \ --header 'ofs_workspace_id: WS001' \ --header 'content-type: application/json' \ --header 'Authorization: Bearer eyJ4NXQjUzI1NiI6Ildia25rQUR5TUZIMlhlQ1pKcTY1c3o4VzdEVWhKa0s4MldYY0hadk4wWkkiLCJ4 ... ... sQXj0iohsSIEmQXVwwjhhqnc4eJNnmCjx8Tb7TXjx1MIQLeOIcfrIj5gkzoMKX94_7USxHv-6LhBzw' Response {"payload":"File Deleted Successfully"}