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 Session
AI-generatedOverview
This node interacts with the Appwrite API to perform various operations on different resources. Specifically, for the 'Account' resource and 'Delete Session' operation, it deletes a user session identified by a given Session ID. This is useful for managing user sessions, such as logging out users or invalidating sessions for security purposes.
Use Case Examples
- Deleting a user session by providing the session ID to log out a user remotely.
- Managing active sessions by deleting expired or unauthorized sessions.
Properties
| Name | Meaning |
|---|---|
| Session ID | The unique identifier of the session to be deleted. This is required to specify which session to delete. |
Output
JSON
json- The response from the Appwrite API after attempting to delete the session, typically confirming the deletion or providing error details.
Dependencies
- Appwrite API key credential for authentication
Troubleshooting
- Ensure the Session ID provided is correct and exists; otherwise, the API may return an error indicating the session was not found.
- Verify that the API key and project credentials are valid and have the necessary permissions to delete sessions.
- Common errors include authentication failures, invalid session IDs, or network issues. Check credentials and network connectivity if errors occur.
Links
- Appwrite Account Delete Session API - Official documentation for deleting a user session using the Appwrite API.