liara_delete_object
Remove an object from a storage bucket on the Liara cloud platform by specifying the bucket name and object key.
Instructions
Delete an object from a bucket
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucketName | Yes | The name of the bucket | |
| objectKey | Yes | The object key to delete |
Implementation Reference
- src/services/storage.ts:149-158 (handler)The main handler function that implements the logic for deleting an object from a Liara storage bucket. It takes a LiaraClient, bucket name, and object key, validates inputs, and calls the API delete endpoint.export async function deleteObject( client: LiaraClient, bucketName: string, objectKey: string ): Promise<void> { validateRequired(bucketName, 'Bucket name'); validateRequired(objectKey, 'Object key'); await client.delete(`/v1/buckets/${bucketName}/objects/${encodeURIComponent(objectKey)}`); }