Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Storage → Delete File
AI-generatedOverview
This node interacts with the Appwrite API to perform file deletion operations within a specified storage bucket. It is useful for automating the management of files stored in Appwrite's storage service, such as removing outdated or unnecessary files programmatically. For example, it can be used in workflows that clean up storage by deleting files based on certain conditions or triggers.
Use Case Examples
- Deleting a file from a specific storage bucket by providing the bucket ID and file ID.
- Automating file cleanup in a storage bucket after processing or archiving files.
Properties
| Name | Meaning |
|---|---|
| Bucket ID | The ID of the storage bucket from which the file will be deleted. |
| File ID | The ID of the file to be deleted from the specified storage bucket. |
Output
JSON
fileId- The ID of the deleted file.bucketId- The ID of the storage bucket from which the file was deleted.status- The status or result of the delete operation, indicating success or failure.
Dependencies
- Appwrite API key credential for authentication
Troubleshooting
- Ensure that the provided Bucket ID and File ID are correct and exist in the Appwrite storage service to avoid errors.
- Check that the API key credential has sufficient permissions to delete files in the specified storage bucket.
- Common error messages may include authorization errors if the API key is invalid or lacks permissions, and not found errors if the file or bucket does not exist.
Links
- Appwrite Storage API - Delete File - Official documentation for deleting files in Appwrite storage service.