Method: Stax::Cmd::S3#delete

Defined in:
lib/stax/mixin/s3.rb

#deleteObject



102
103
104
105
106
107
108
109
# File 'lib/stax/mixin/s3.rb', line 102

def delete
  debug("Deleting buckets for #{my.stack_name}")
  (options[:names] || stack_s3_bucket_names).each do |b|
    if yes?("Delete bucket and contents #{b}?", :yellow)
      ::Aws::S3::Bucket.new(b).delete!
    end
  end
end