- Documentation
Torch Object Storage
Tool Guide
tosutil
Common examples
Deleting objects
Common examples
Deleting objects
Deleting objects
This topic provides examples of how to delete objects with common tosutil commands on macOS.
Example bucket and example objects
The example bucket is named bucketname and contains the following objects:
Common examples
The following commands illustrate various deletion scenarios based on the objects of the example bucket.
Delete the file1.txt object in the bucketname bucket
Delete the folder2 folder in the bucketname bucket
Delete objects with the specified prefix
Delete all objects and folders within the bucketname bucket that have the folder prefix
warning
This command deletes folder1/ and folder2/.
Last updated: 2025.12.17 18:33:44