def delete_secret(name): """Deletes the secret""" secrets = get_secrets_names() if name not in secrets: LOG.error("Secret {} not present !!!".format(name)) return LOG.info("Deleting secret {}".format(name)) Secret.delete(name)
def delete_secret(name): """Deletes the secret""" secrets = get_secrets_names() if name not in secrets: click.echo(highlight_text("\nSecret not present !!!\n")) return Secret.delete(name) click.echo(highlight_text("\nSecret deleted !!!\n"))