delete_user.py 352 B

12345678910
  1. import model
  2. if __name__ == '__main__':
  3. user_id = model.get_user_id_by_name(input('Which user?'))
  4. if input('Are you sure you want to delete user with id ' + str(
  5. user_id) + '? (type in "yes" or something else):') == 'yes':
  6. model.delete_user(user_id=user_id)
  7. else:
  8. print('Not deleting user')
  9. model.cleanup()