def delete(rsrc_id): """Delete AWS image.""" image = rsrc_id _LOGGER.info('Create image: %s', image) ec2_conn = awscontext.GLOBAL.ec2 ec2client.delete_images(ec2_conn, name=image)
def delete(image): """Delete Image""" ec2_conn = awscontext.GLOBAL.ec2 ec2client.delete_images( ec2_conn=ec2_conn, ids=image['ids'] ) click.echo(image)