(self, http=None)
Delete the remote resource represented by the `RemoteObject`
        instance through an HTTP ``DELETE`` request.

        Optional parameter `http` is the user agent object to use. `http`
        objects should be compatible with `httplib2.Http` objects.
Delete the remote resource represented by the `RemoteObject`
        instance through an HTTP ``DELETE`` request.
Delete the remote resource represented by the RemoteObject instance through an HTTP DELETE request .
def delete(self, http=None):
        """Delete the remote resource represented by the `RemoteObject`
        instance through an HTTP ``DELETE`` request.

        Optional parameter `http` is the user agent object to use. `http`
        objects should be compatible with `httplib2.Http` objects.

        """
        if getattr(self, '_location', None) is None:
            raise ValueError('Cannot delete %r with no URL to DELETE' % self)

        headers = {}
        if hasattr(self, '_etag') and self._etag is not None:
            headers['if-match'] = self._etag

        request = self.get_request(method='DELETE', headers=headers)
        if http is None:
            http = userAgent
        response, content = http.request(**request)

        self.raise_for_response(self._location, response, content)

        log.debug('Yay deleted the remote resource, now disconnecting %r from it', self)

        # No more resource, no more URL.
        self._location = None
        try:
            del self._etag
        except AttributeError:
            # Don't mind if there's no etag.
            pass
def delete ( self , http = None ) : if getattr ( self , '_location' , None ) is None : raise ValueError ( 'Cannot delete %r with no URL to DELETE' % self ) headers = { } if hasattr ( self , '_etag' ) and self . _etag is not None : headers [ 'if-match' ] = self . _etag request = self . get_request ( method = 'DELETE' , headers = headers ) if http is None : http = userAgent response , content = http . request ( * * request ) self . raise_for_response ( self . _location , response , content ) log . debug ( 'Yay deleted the remote resource, now disconnecting %r from it' , self ) # No more resource, no more URL. self . _location = None try : del self . _etag except AttributeError : # Don't mind if there's no etag. pass