1
1

delete_user.py 372 B

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