I'm able to delete individual files within a "Folder" on Amazon S3 using the following:
s3 = AWS::S3.new(:access_key_id => ENV['AWS_ACCESS_KEY_ID'], :secret_access_key => ENV['AWS_ACCESS_KEY'])
folder_path = 'uploads/'[email protected]_filename
s3.buckets[ENV['AWS_BUCKET']].objects.with_prefix(folder_path).delete_all
but this leaves an empty folder. How can I just delete the folder entirely (folder_path)?