appwrite/docs/examples/1.5.x/server-python/examples/storage/delete-file.md

14 lines
360 B
Markdown
Raw Normal View History

2024-02-05 12:40:51 +00:00
from appwrite.client import Client
client = Client()
2024-02-21 11:31:50 +00:00
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
client.set_project('5df5acd0d48c2') # Your project ID
client.set_session('') # The user session to authenticate with
2024-02-05 12:40:51 +00:00
storage = Storage(client)
2024-02-21 11:31:50 +00:00
result = storage.delete_file(
2024-02-24 11:34:42 +00:00
bucket_id = '<BUCKET_ID>',
file_id = '<FILE_ID>'
2024-02-21 11:31:50 +00:00
)