Problem or programme?
A locked file is one that's currently in use by a program. Before arbitrarily deleting them you need to make sure you know why you want to delete them. I use
Unlocker to allow me to delete or move files locked by running processes, and you might want to try that rather than one that just deletes regardless.