grr/server/grr_response_server/databases/mysql_artifacts.py
def DeleteArtifact(self, name, cursor=None):
    """Deletes an artifact with given name from the database."""

    cursor.execute("DELETE FROM artifacts WHERE name_hash = %s",
                   [mysql_utils.Hash(name)])

    if cursor.rowcount == 0:
      raise db.UnknownArtifactError(name)
Deletes an artifact with given name from the database.
Deletes an artifact with given name from the database.
Deletes an artifact with given name from the database .
def DeleteArtifact(self, name, cursor=None):
    cursor.execute("DELETE FROM artifacts WHERE name_hash = %s",
                   [mysql_utils.Hash(name)])
    if cursor.rowcount == 0:
      raise db.UnknownArtifactError(name)
def DeleteArtifact ( self , name , cursor = None ) : cursor . execute ( "DELETE FROM artifacts WHERE name_hash = %s" , [ mysql_utils . Hash ( name ) ] ) if cursor . rowcount == 0 : raise db . UnknownArtifactError ( name )
Deletes an artifact with given name from the database.
Deletes an artifact with given name from the database .
"""Deletes an artifact with given name from the database."""
self
name
cursor