'Delete the entire user directory'

def delete_all_from_user_dir(self):

    def _delete_all_from_user_dir_txn(txn):
        txn.execute('DELETE    FROM    user_directory')
        txn.execute('DELETE    FROM    user_directory_search')
        txn.execute('DELETE    FROM    users_in_pubic_room')
        txn.execute('DELETE    FROM    users_who_share_rooms')
        txn.call_after(self.get_user_in_directory.invalidate_all)
        txn.call_after(self.get_user_in_public_room.invalidate_all)
        txn.call_after(self.get_users_who_share_room_from_dir.invalidate_all)
        txn.call_after(self.get_if_users_share_a_room.invalidate_all)
    return self.runInteraction('delete_all_from_user_dir', _delete_all_from_user_dir_txn)
