Delete a file
Note: Catalyst now offers you a brand new object storage component called Stratus in Early Access mode. This component is a significant upgrade to the current Cloud Scale File Store component. You can find out more about the Stratus component here.
To use the Stratus component in the Early Access mode, email us at support@zohocatalyst.com.
To use the Stratus component in the Early Access mode, email us at support@zohocatalyst.com.
A file from a folder can be deleted by referring its file ID. The component reference or folder reference is used in the below code snippet. A file ID is passed as a parameter to the delete_file() method. The response returns a boolean value ( true or false) based on the status of deletion.
To know more about the component instancefilestore_service and the folder instancefolder_service used below, please refer to their respective help sections.
Parameters Used
Parameter Name | Data Type | Definition |
---|---|---|
file_ID | String | A Mandatory parameter. Will hold the ID of the file to be deleted. |
copy#Delete a file filestore_service = app.filestore() folder_service = filestore_service.folder(5249000000016011) folder_service.delete_file(5249000000032063)
Info : Refer to the SDK Scopes table to determine the required permission level for performing the above operation.
Last Updated 2025-06-20 19:01:24 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit