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
Users → Delete Sessions
AI-generatedOverview
This node interacts with the Appwrite API to manage user sessions among other user-related operations. Specifically, the 'Delete Sessions' operation under the 'Users' resource allows for deleting all sessions associated with a specified user ID. This is useful for scenarios such as logging out a user from all devices or revoking access due to security concerns.
Use Case Examples
- Deleting all active sessions for a user after a password reset to ensure account security.
- Revoking user sessions when suspicious activity is detected.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the user whose sessions are to be deleted. |
Output
JSON
json- The response from the Appwrite API after deleting the user's sessions, typically confirming the deletion or providing status information.
Dependencies
- Requires an Appwrite API key credential for authentication to the Appwrite server endpoint.
Troubleshooting
- Common issues include invalid or missing User ID, which will cause the API call to fail.
- Authentication errors due to incorrect or expired API key credentials.
- Network or endpoint configuration issues preventing connection to the Appwrite server.
- Error messages from the API will typically indicate the cause, such as 'User not found' or 'Unauthorized'. Resolving these involves verifying the User ID, API credentials, and network settings.
Links
- Appwrite Users API - Delete Sessions - Official documentation for deleting user sessions using the Appwrite API.