def clear_cached_catalog(db_session):
    try:
        c = db_session.cursor()
        tables = ["artists", "albums", "songs"]
        for table_name in tables:
            c.execute("""DELETE FROM %s""" % table_name)
        db_session.commit()
        c.close()
    except:
        return False
    return True
Clear the locally cached catalog.
dataset/ETHPy150Open bahamas10/Viridian/AmpacheTools/dbfunctions.py/clear_cached_catalog