If the file is open in a pending changelist other than default, then you must use the -c flag to specify the pending changelist. If no changelist is specified, p4 unlock unlocks files in the default changelist.Administrators can use the -f option to forcibly unlock a file opened by another user.
-c changelist# Unlock files in pending changelist changelist# See the Global Options section.
Can File Arguments Use
Revision Specifier? Can File Arguments Use
Revision Range? Minimal Access Level Required
p4 opened | grep "*locked*"