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_name that are found in the root_path directory.

  • 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 set aws_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 of aws_access_key_id and aws_secret_access_key for file-based credentials.


ltdconveyor.s3.S3Error – Thrown by any unexpected faults from the S3 API.

Return type: