Remove a file from the filesystem.

def remove_file(file_path):
    """Remove a file from the filesystem."""
    if path.exists(file_path):
        try:
            rmtree(file_path)
        except Exception:
            print('Unable to remove temporary workdir {}'.format(file_path))