Skip to main content

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

ParamTypeDescriptionRequired
keysdictList of keys to deleteFalse
prefixesdictList of prefixes to deleteFalse

Note: At least one of keys or prefixes should be passed