pgcontents/query.py
def purge_user(db, user_id):
    """
    Delete a user and all of their resources.
    """
    db.execute(files.delete().where(
        files.c.user_id == user_id
    ))
    db.execute(directories.delete().where(
        directories.c.user_id == user_id
    ))
    db.execute(users.delete().where(
        users.c.id == user_id
    ))
def purge_user(db, user_id):
    db.execute(files.delete().where(
        files.c.user_id == user_id
    ))
    db.execute(directories.delete().where(
        directories.c.user_id == user_id
    ))
    db.execute(users.delete().where(
        users.c.id == user_id
    ))
def purge_user ( db , user_id ) : db . execute ( files . delete ( ) . where ( files . c . user_id == user_id ) ) db . execute ( directories . delete ( ) . where ( directories . c . user_id == user_id ) ) db . execute ( users . delete ( ) . where ( users . c . id == user_id ) )
Delete a user and all of their resources.
Delete a user and all of their resources .