delete_ownable.py 375 B

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