In few cases, the file can’t be removed or deleted as it is being used by another application or essential program. This can be caused by a virus, malware, spyware, adware, Trojan horse, or corrupt/damaged system files and permissions that locks the files, thereby making them undeletable.
Despite having admin privileges in Windows, users sometimes face this issue where they are not able to delete some files or folders. It’s important to keep your system clean from junk or irrelevant files occupying unnecessary space on the drive.