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
Account → Delete Sessions
AI-generatedOverview
This node interacts with the Appwrite API to perform various operations on different resources. Specifically, for the 'Account' resource with the 'Delete Sessions' operation, it deletes all active sessions of the authenticated user. This is useful for security purposes, such as logging out from all devices or revoking access tokens.
Use Case Examples
- A user wants to log out from all devices by deleting all active sessions.
- An admin needs to revoke all sessions for a compromised account to prevent unauthorized access.
Output
JSON
$response- The response from the Appwrite API after deleting all sessions, typically an empty object or confirmation message.
Dependencies
- Appwrite API
- API key credential for authentication
Troubleshooting
- Ensure the API key and project ID credentials are correctly set and have the necessary permissions.
- If the operation fails, check network connectivity and Appwrite server status.
- Common error messages include authentication errors (invalid API key) and permission errors (insufficient rights to delete sessions).
Links
- Appwrite API Documentation - Delete Sessions - Official documentation for the Delete Sessions operation on the Account resource in Appwrite API.