Delete an Object From a Bucket
To delete an object from the bucket:
-
Select the required object.
-
Click Delete.
-
Click Delete in the prompt as well.
The delete action will be scheduled, and it will take a short while before the operation is rendered in the console.
Delete operations can be performed on multiple objects and on multiple paths in the same manner.
You can also use the Delete button present in the object details view to delete the object.

Ensure the following packages are imported:
copy
import org.json.simple.JSONObject;
copy
int ttl = 200; JSONObject deleteRes = bucket.deleteObject(“objectName”, “versionId”, ttl); System.out.println(deleteRes);
copy
const res = await bucket.deleteObject(“objectName”); console.log(res);
copy
delete_res = bucket.delete_object(‘object_name’) print(delete_res)
copy
// Delete an object const deleteObject = await bucket.deleteObject(“objectName”);
copy
objectInstance.delete() { error in if let error = error { print(“Error : \( error )”) return } print(“Deleted Successfully”) }
copy
bucketInstance.getObject(“SunSet.jpeg”, “2823000000044005”, //Replace this with your Object Name and Object ID { object -> object.delete( { println(“Object Deletion Success.”) }, { println(“Failed to delete the object. $it”) } )
copy
try { ZCatalystBucket bucket = stratus.bucket(“testing”); var (response, objects, _) = await bucket.getObjects(maxKeys: 5, prefix: ’trip’); var response = await bucket.deleteObjects(objects); print(“Delete Objects: ${response.statusCode}”); } on ZCatalystException catch (ex) { print(ex.toString()); }
Last Updated 2025-06-03 18:19:55 +0530 +0530
Yes
No
Send your feedback to us