When you clear out the Temp folder, you select everything in the Temp folder and click Delete.
Any files that cannot be deleted are locked because they are in use by either Windows or some software installed on your PC, that is normal, and those files should not be removed, this is normal in Windows.
You could try disabling all apps that start with Windows in Task Manager - Start-Up, then boot your PC into Safe Mode to test if you can clear out the rest of the Temp folder, if not, then it is Windows using those folders.