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

Latest commit

 

History

History
15 lines (12 loc) · 412 Bytes

delete.md

File metadata and controls

15 lines (12 loc) · 412 Bytes
from appwrite.client import Client
from appwrite.services.postgresql import Postgresql

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

postgresql = Postgresql(client)

result = postgresql.delete(
    database_id = '<DATABASE_ID>'
)