1
1

delete_ownable.py 395 B

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