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
Functions → Delete
AI-generatedOverview
This node interacts with the Appwrite API to perform various operations on Appwrite resources. Specifically, for the 'Functions' resource with the 'Delete' operation, it deletes a specified function by its ID. This is useful for managing serverless functions within an Appwrite project, such as removing outdated or unused functions to maintain a clean environment.
Use Case Examples
- Deleting a serverless function by providing its Function ID to clean up unused functions in an Appwrite project.
- Automating the removal of functions as part of a deployment pipeline to ensure only relevant functions are active.
Properties
| Name | Meaning |
|---|---|
| Function ID | The ID of the function to be deleted, required to identify which function to remove. |
Output
JSON
functionId- The ID of the deleted function, confirming which function was removed.status- The status of the delete operation, indicating success or failure.
Dependencies
- Appwrite API
Troubleshooting
- Ensure the Function ID provided is correct and exists in the Appwrite project; otherwise, the delete operation will fail.
- Verify that the API key credential has sufficient permissions to delete functions in the Appwrite project.
- Common error messages include authorization errors if the API key is invalid or lacks permissions, and not found errors if the Function ID does not exist.
Links
- Appwrite Functions Documentation - Official documentation for managing functions in Appwrite, including deletion.