Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Account → Delete Sessions

AI-generated

Overview

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

  1. A user wants to log out from all devices by deleting all active sessions.
  2. 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

Discussion