# unlock-file command

The unlock-file command clears file
locks which have not been cleared through normal system operation.

File locks are set by BASIC filelock statements and other mechanisms, and provide a means of assuring
data reliability by preventing one process from updating a file while
another process examines a batch of records from that same file.

File locks are displayed by list-locks as special
item locks with an item-ID of an asterisk and a hash of 0.

Note: A clear-locks (I or a clear-locks releases all file locks.

## Syntax

```
unlock-file file.reference {(options}
```

## Parameter(s)

| options | i | Suppresses message item 'x' released. |
| --- | --- | --- |

## See also

- [clear-locks command](https://d3codex.com/tcl/clear-locks-command/)
- [list-lockq command](https://d3codex.com/tcl/list-lockq-command/)
- [list-locks command](https://d3codex.com/tcl/list-locks-command/)
- [lock statement](https://d3codex.com/pickbasic-flashbasic/lock-statement/)
- [Locking scheme](https://d3codex.com/definitions/locking-scheme/)
- [what command](https://d3codex.com/tcl/what-command/)

---
Source: https://d3codex.com/tcl/unlock-file-command/ - part of the D3Codex reference.
