remove_key¶
- remove_key(location: str, key: str) None [source]¶
Remove object key at specified location.
Method will remove from the S3 bucket if the location begins with the s3:// protocol, otherwise it assumes the location is a local path.
- Parameters:
location – Object location (local path or S3 bucket).
key – Object key.