In Windows 10, you simply can’t do anything whenever you encounter a locked file or folder — you cannot open it, move it, or even delete it without the correct password. For folders that you didn’t lock, finding the password often isn’t an option. You can’t open these folders, but you can delete them, even though a simple right-click then Delete won’t work.
NOTE: Keep in mind that deleting these files can cause serious harm to your system if you’re not sure why they’re there in the first place. Therefore, proceed to the steps below with caution.
STEP 1: Locate the locked folder you wish to delete. STEP 2: Download Microsoft’s Process Explorer, then click OK on the pop-up window.
STEP 3: Double-click procexp64 to extract the file.
STEP 4: Now, click on Extract all.
STEP 5: Click Open. STEP 6: Double-click the procexp64 application to open the application.
STEP 7: Click the Run button. STEP 8: Read the terms, then press the Agree button.
STEP 9: In the Process Explorer window, click on File, then select Show Details for All Processes.
STEP 10: When prompted if you would like to allow the app to make changes, select Yes. STEP 11: Click on the Find menu, then select Find Handle or DLL.
STEP 12: Type in the file name, then hit Search.
STEP 13: Right-click the process in the bottom of the Process Explorer screen, then select Close Handle.
STEP 14: Now, proceed in deleting the file as you would normally do.