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. The filestore_service reference used below is already defined in the component instance page.
copy
#Delete a file
folder_service = filestore_service.folder(5249000000016011)
folder_service.delete_file(5249000000032063)
Last Updated 2025-02-24 14:38:44 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit