Delete objects
delete_objects(keys, prefixes)
Deletes keys/prefixes from TruStorage
# delete keys
storage.delete_objects(keys=["directory/file.ext", "directory/sample.csv"])
# delete by prefix
storage.delete_objects(prefixes=["directory/", "raw-data/"])
Parameters
Param | Type | Description | Required |
---|---|---|---|
keys | dict | List of keys to delete | False |
prefixes | dict | List of prefixes to delete | False |
Note: At least one of keys or prefixes should be passed