Sha256: 1a6a4473152b13b5b0b3134161a2583d765ab071990017027338a80b92b3aa1a

Contents?: true

Size: 553 Bytes

Versions: 5

Compression:

Stored size: 553 Bytes

Contents

module Fog
  module Rackspace
    class Storage
      class Real

        # Delete an existing container
        #
        # ==== Parameters
        # * container<~String> - Name of container to delete
        # * object<~String> - Name of object to delete
        #
        def delete_object(container, object)
          response = request(
            :expects  => 204,
            :method   => 'DELETE',
            :path     => "#{CGI.escape(container)}/#{CGI.escape(object)}"
          )
          response
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-0.7.1 lib/fog/storage/requests/rackspace/delete_object.rb
fog-0.7.0 lib/fog/storage/requests/rackspace/delete_object.rb
fog-0.6.0 lib/fog/storage/requests/rackspace/delete_object.rb
fog-0.5.3 lib/fog/storage/requests/rackspace/delete_object.rb
fog-0.5.2 lib/fog/storage/requests/rackspace/delete_object.rb