def destroy(name): if not BlockadeManager.blockade_exists(name): abort(404) b = BlockadeManager.get_blockade(name) b.destroy() BlockadeManager.delete_config(name) return '', 204
def destroy(name): if not BlockadeManager.blockade_exists(name): abort(404) if _chaos.exists(name): try: _chaos.delete(name) except errors.BlockadeUsageError as bue: app.logger.error(bue) b = BlockadeManager.get_blockade(name) b.destroy() b.get_audit().clean() BlockadeManager.delete_config(name) return '', 204