how do you mean locked. Do you mean deleting an exe file while the process is running "locked by the os"; or do you mean removing a lock flag placed manually or programatically and erasing the file?