delete_dir¶
- ltdconveyor.s3.delete_dir(bucket_name, root_path, aws_access_key_id=None, aws_secret_access_key=None, aws_profile=None)¶
Delete all objects in the S3 bucket named
bucket_namethat are found in theroot_pathdirectory.- Parameters:
bucket_name (
str) – Name of an S3 bucket.root_path (
str) – Directory in the S3 bucket that will be deleted.aws_access_key_id (
str) – The access key for your AWS account. Also setaws_secret_access_key.aws_secret_access_key (
str) – The secret key for your AWS account.aws_profile (
str, optional) – Name of AWS profile in~/.aws/credentials. Use this instead ofaws_access_key_idandaws_secret_access_keyfor file-based credentials.
- Raises:
ltdconveyor.s3.S3Error – Thrown by any unexpected faults from the S3 API.
- Return type: