# clear-group-locks command

The clear-group-locks command clears the group locks in the system
 group locks table.

## Syntax

CAUTION: Use this command with caution. It overrides the protection provided by the
 operating system to prevent data corruption and Group Format Errors (GFEs).

```
clear-group-locks
```

## Description

Group locks are set by the operating system. For example, by the file-save
 command, and by AQL when processing a file. Group locks are typically cleared automatically when
 the commands that set them have finished executing.

 Review the following information about the clear-group-locks command:

- Data in a locked group cannot be updated by others while a user is reading or writing to it, or while being saved.

- The group lock table holds information about all currently locked groups.

- The what command shows the current status of the group locks.

- The clear-group-locks command cannot be executed from a Proc.

## See also

- [clear-locks command](https://d3codex.com/tcl/clear-locks-command/)
- [file-save command](https://d3codex.com/tcl/file-save-command/)
- [list-item-locks macro](https://d3codex.com/tcl/list-item-locks-macro/)
- [matread statement](https://d3codex.com/pickbasic-flashbasic/matread-statement/)
- [read statement](https://d3codex.com/pickbasic-flashbasic/read-statement/)
- [readv statement](https://d3codex.com/pickbasic-flashbasic/readv-statement/)
- [what command](https://d3codex.com/tcl/what-command/)

---
Source: https://d3codex.com/tcl/clear-group-locks-command/ - part of the D3Codex reference.
