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 Variable
AI-generatedOverview
This node interacts with the Appwrite API to manage various resources, including functions and their environment variables. Specifically, the 'Delete Variable' operation under the 'Functions' resource allows users to delete an environment variable associated with a specific function by providing the function ID and the variable ID. This is useful for managing and cleaning up environment variables in serverless functions hosted on Appwrite.
Use Case Examples
- Deleting an environment variable from a function to remove sensitive data no longer needed.
- Automating cleanup of environment variables during CI/CD pipelines for Appwrite functions.
Properties
| Name | Meaning |
|---|---|
| Function ID | The ID of the function from which the environment variable will be deleted. |
| Variable ID | The ID of the environment variable to be deleted from the specified function. |
Output
JSON
json- The response from the Appwrite API after deleting the environment variable, typically confirming the deletion or providing status information.
Dependencies
- Appwrite API endpoint
- Project ID
- API key credential for authentication
Troubleshooting
- Ensure that the provided Function ID and Variable ID are correct and exist in the Appwrite project.
- Check that the API key has sufficient permissions to delete environment variables for functions.
- Common errors include authorization failures if credentials are invalid or missing, and not found errors if the IDs do not correspond to existing resources.
Links
- Appwrite Functions Environment Variables - Official documentation on managing environment variables for Appwrite functions.
- Appwrite API - Delete Variable - API reference for deleting a function environment variable in Appwrite.