def destroy(): # If necessary, put code here that resets anything # that the deployment manager won't delete # Delete starting files levels.delete_start_files() # Delete deployment deployments.delete()
def destroy(): print('Level tear-down started for: ' + LEVEL_PATH) # Delete logs client = glogging.Client() if len([ entry for entry in client.list_entries(filter_=f'logName:{LOG_NAME}') ]) > 0: logger = client.logger(LOG_NAME) logger.delete() # Delete starting files levels.delete_start_files() print('Level tear-down finished for: ' + LEVEL_PATH) # Delete deployment deployments.delete()
def destroy(): credentials, project_id = google.auth.default() #Delete datastore entity delete_entities(project_id) # Delete starting files levels.delete_start_files() # Delete deployment deployments.delete() delete_custom_roles(credentials, project_id) delete_nonce_file()
def destroy(): # Delete starting files levels.delete_start_files() # Delete deployment deployments.delete()
def destroy(): levels.delete_start_files() deployments.delete() delete_secret(DB_SECRET_ID)