'Deletes file from disk and return result as boolean.'

def _delete_file(self, path):

    try:
        LOG.debug('Deleting    file    at    path    %s', path)
        cmd = ['rm', '-f', path]
        self._execute(run_as_root=self._execute_as_root, *cmd)
        return True
    except Exception as e:
        LOG.warning('Exception    during    deleting    %s', e)
        return False
