unlock [-<option> . . .]
Unlocks objects that have been left in use.
This command is also available in cmd4 as unlock.
Options
[-ids] <comma-separated database ids>
Database ids of the object to unlock.
-conditions
Either a GNQuery search expression or the name of the file or of the search configuration containing the search conditions - used to select the objects to unlock. Available since the version 2.0.
Note
Typically, it is sufficient to sign out a user session in order to "free" all the objects locked by her/him.
You can do it by removing the login from the EdAdmin applet Log Admin.
Logins are in any case removed by the Back4 cleanup process, so also the objects kept in use.
Examples
Unlock all items locked by the user with id 419:
srv4 unlock -conditions gn4:object[nav:checkOuts/nav:checkOut/@UserId='obj419']
Unlock all items locked by the user with name reba:
srv4 unlock -conditions gn4:object[nav:checkOuts/nav:checkOut/gn4:user/nav:refObject/gn4:user/@name='reba']