appwrite/docs/examples/1.6.x/server-python/examples/account/delete-session.md

14 lines
397 B
Markdown
Raw Normal View History

2024-07-03 15:25:40 +00:00
from appwrite.client import Client
2025-01-08 06:40:33 +00:00
from appwrite.services.account import Account
2024-07-03 15:25:40 +00:00
client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
client.set_project('<YOUR_PROJECT_ID>') # Your project ID
2024-07-03 15:25:40 +00:00
client.set_session('') # The user session to authenticate with
account = Account(client)
result = account.delete_session(
session_id = '<SESSION_ID>'
)