Are they in a folder on a network or just on your computer?
Can you delete them manually or does it give an error?
It’s supposed to remove them when you close ID so it may be that ID didn’t technically close (even though it appeared to) or it closed but it’s being denied access to the lock files.
If you’re on windows and do ctrl+alt+delete you can see if indesign is secretly still running even though it appears to be closed.
If the files are somehow locked and not allowed to be deleted, it could be an issue with the computer’s settings for file permissions. If a file doesn’t have certain permissions, a person or program cannot delete it.
You can see the permissions in windows by right clicking one of the lock files, and choosing properties, and then choosing the security tab. I don’t know if your security tab will look exactly like mine, but on my computer, the groups that can control IDLK files are:
Everyone
Authenticated Users
SYSTEM
Administrators
Users
And each of these groups has its own set of permissions.
Everyone, SYSTEM, and Administrators shows a checkbox for all the permissions
(well, the first 5… Full Control, Modify, Read & Execute, Read, Write).
Authenticated Users don’t have a check by “Full Control”.
“Users” only have checkmarks for “read” and “read & execute”.
If your permissions match mine, then probably it isn’t a permissions problem.
It sounds lame but… if you haven’t rebooted in a while, definitely do that before doing any other troubleshooting.