Hello yip817, maybe your system locked the file, you can try the following easy way to remove these files step by step.
(1) Restart your computer in "safe mode"
(2) Go to the folder with these files and press "Shift + Delete"
Most of the locked files can be delete by this way.