- import model
- if __name__ == '__main__':
- ownable_id = model.ownable_id_by_name(input('Which ownable?'))
- if input('Are you sure you want to delete ownable with id ' + str(
- ownable_id) + '? (type in "yes" or something else):') == 'yes':
- model.delete_ownable(ownable_id=ownable_id)
- else:
- print('Not deleting ownable')
- model.cleanup()
|