(self)
return error.check_return_status(response, logger)
Deletes the aggregation from the store.
Deletes the aggregation from the store.
Deletes the aggregation from the store .
def delete(self):
        """Deletes the aggregation from the store."""
        if not self._resource_id:
            logger.warning(
                'Unable to delete the aggregation, it does not appear to be '
                'saved in the first place.')
            return False

        resource_uri = '{0:s}/sketches/{1:d}/aggregation/{2:d}/'.format(
            self.api.api_root, self._sketch.id, self._resource_id)
        response = self.api.session.delete(resource_uri)
        return error.check_return_status(response, logger)
def delete ( self ) : if not self . _resource_id : logger . warning ( 'Unable to delete the aggregation, it does not appear to be ' 'saved in the first place.' ) return False resource_uri = '{0:s}/sketches/{1:d}/aggregation/{2:d}/' . format ( self . api . api_root , self . _sketch . id , self . _resource_id ) response = self . api . session . delete ( resource_uri ) return error . check_return_status ( response , logger )