def _destroy_ebs_volume(self, volume_id):
if self._ebs_volume_exists(volume_id):<EOL><INDENT>log_yellow('<STR_LIT>')<EOL>try:<EOL><INDENT>self.connection.delete_volume(volume_id)<EOL><DEDENT>except Exception as e:<EOL><INDENT>log_yellow("<STR_LIT>")<EOL>log_yellow("<STR_LIT>".format(type(e), str(e)))<EOL>worked = False<EOL>for i in range(<NUM_LIT:6>):<EOL><INDENT>sleep(<NUM_LIT:5>)<EOL>if not self._ebs_volume_exists(volume_id):<EOL><INDENT>log_green("<STR_LIT>")<EOL>worked = True<EOL><DEDENT><DEDENT>if not worked:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT><DEDENT><DEDENT>
destroys an ebs volume