sdk-for-python/docs/examples/project/delete-key.md at main · appwrite/sdk-for-python · GitHub
Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 391 Bytes

delete-key.md

File metadata and controls

15 lines (12 loc) · 391 Bytes
from appwrite.client import Client
from appwrite.services.project import Project

client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
client.set_project('<YOUR_PROJECT_ID>') # Your project ID
client.set_key('<YOUR_API_KEY>') # Your secret API key

project = Project(client)

result = project.delete_key(
    key_id = '<KEY_ID>'
)