'Delete the package, unlinking any team (the team itself lives on)
and clearing any claim.'

def delete(self, cursor=None):

    cursor = (cursor or self.db)
    if self.load_team(cursor):
        self.unlink_team(cursor)
    cursor.run(u'DELETE    FROM    claims    WHERE    package_id=%s', (self.id,))
    cursor.run(u'DELETE    FROM    packages    WHERE    package_manager=%s    AND    name=%s', (self.package_manager, self.name))
