def destroy_ebs_volume(connection, region, volume_id, log=False):
if ebs_volume_exists(connection, region, volume_id):<EOL><INDENT>if log:<EOL><INDENT>log_yellow('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>connection.delete_volume(volume_id)<EOL><DEDENT>except:<EOL><INDENT>sleep(<NUM_LIT:5>)<EOL>if not ebs_volume_exists(connection, region, volume_id):<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>raise("<STR_LIT>")<EOL><DEDENT><DEDENT><DEDENT>
destroys an ebs volume