(self, key, content_length)
Delete blob metadata

        Metadata for temporary blobs is deleted. Non-temporary metadata
        is retained to make it easier to track down missing blobs.

        :param key: Blob key string.
        :returns: The number of metadata rows deleted.
Delete blob metadata
Delete blob metadata
def delete(self, key, content_length):
        """Delete blob metadata

        Metadata for temporary blobs is deleted. Non-temporary metadata
        is retained to make it easier to track down missing blobs.

        :param key: Blob key string.
        :returns: The number of metadata rows deleted.
        """
        with BlobMeta.get_plproxy_cursor() as cursor:
            cursor.execute('SELECT 1 FROM delete_blob_meta(%s)', [key])
        metrics_counter('commcare.blobs.deleted.count')
        metrics_counter('commcare.blobs.deleted.bytes', value=content_length)
def delete ( self , key , content_length ) : with BlobMeta . get_plproxy_cursor ( ) as cursor : cursor . execute ( 'SELECT 1 FROM delete_blob_meta(%s)' , [ key ] ) metrics_counter ( 'commcare.blobs.deleted.count' ) metrics_counter ( 'commcare.blobs.deleted.bytes' , value = content_length )