---
name: "clear_locks"
section: "8"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/clear_locks"
---

# clear\_locks(8)

clear locks held on behalf of an NFS client

## NAME

**clear\_locks** – clear locks held on behalf of an NFS client

## SYNOPSIS

**clear\_locks** *hostname*

## DESCRIPTION

The **clear\_locks** command can be used to clear file locks held by an NFS client. This should only be used to handle problems caused by an NFS client crashing while holding locks and failing to clear them itself when it reboots.

## SEE ALSO

[rpc.lockd(8)](/rpc.lockd/8.md)

## HISTORY

A version of **clear\_locks** appeared in SunOS 4.
