lib/net/amazon/s3/bucket.rb
# Deletes the specified object from this bucket.
Deletes the specified object from this bucket.
Deletes the specified object from this bucket .
def delete_object(object_key)
      object_key_escaped = S3::Object.escape_key(object_key)
      unless object = get_object(object_key)
        raise S3Error::NoSuchKey, 'The specified key does not exist'
      end
      @cache.delete(:objects)
      return true unless @s3.error?(@s3.request_delete(
          "/#{@name}/#{object_key_escaped}"))
    end
def delete_object ( object_key ) object_key_escaped = S3 :: Object . escape_key ( object_key ) unless object = get_object ( object_key ) raise S3Error :: NoSuchKey , 'The specified key does not exist' end @cache . delete ( :objects ) return true unless @s3 . error? ( @s3 . request_delete ( "/#{@name}/#{object_key_escaped}" ) ) end
Deletes the specified object from this bucket.
Deletes the specified object from this bucket .
object_key
<not_specific>