title: I am unable to delete file from the s3 using rails
body: <p>I use following method to delete uploaded file from s3</p>
  
  <pre><code>key = params[:folder_name]+'/'+params[:file_name]
              resp = S3_BUCKET.delete_object({
                bucket: "My-s3bucket", 
                key: key
              })
  </code></pre>
  
  <p>I get the error :
  NoMethodError (undefined method `delete_object')</p>
  
  <p>I also use S3_BUCKET.object(key).delete but this also gives error like:
  ArgumentError (wrong number of arguments (given 1, expected 0))</p>
  
  <p>I define s3_bucket as bellow</p>
  
  <p>s3_file = AWS::S3.new( :access_key_id => 'access_key_id', :secret_access_key => 'secretkey')
  S3_BUCKET = s3_file.buckets['My-s3bucket']</p>
  
  <p>Please help me when i was going wrong</p>