def remove_external_lock_file(name, lock_file_prefix=None, lock_path=None,
                              semaphores=None):
    """Remove an external lock file when it's not used anymore
    This will be helpful when we have a lot of lock files
    """
    with internal_lock(name, semaphores=semaphores):
        lock_file_path = _get_lock_path(name, lock_file_prefix, lock_path)
        try:
            os.remove(lock_file_path)
        except __HOLE__:
            LOG.info(_LI('Failed to remove file %(file)s'),
                     {'file': lock_file_path})
dataset/ETHPy150Open openstack/oslo.concurrency/oslo_concurrency/lockutils.py/remove_external_lock_file