+3 votes
62 views
I can't Delete Files or Folders from my PC

in Windows11 by (552k points)
reopened | 62 views

1 Answer

+4 votes
Best answer

1 How to delete files in Windows 11
2 How to delete folders in Windows 11
3 How to delete zip files in Windows 11

To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE

 

In Windows 11 or 10 we perform countless actions to manage folders and files and apart from editing them, one of the most common is deleting this type of elements. We normally do this using two options:

 

Options
  • Selecting the file or folder and pressing the Del or Del key
  • Right click on the object and then click Delete
  • Select the file or folder and click the Delete icon

 

 

Although this is generally a task that is carried out without errors, on our PC we may find that it is not possible to delete files or folders..

 

 

If you have this situation, this tutorial is for you since we will teach you how to delete files and folders on your PC using a safe method.

 


1 How to delete files in Windows 11

 

Step 1

Our first example will be to delete a file, first let's check the path where the file is:

 

image

 

Step 2

After this, we right click on Start and click on “Terminal (Administrator)”:

 

image

 

Step 3

In the UAC message we click “Yes” to access:

 

image

 

Step 4

Now, in File Explorer, we select the file, click on “More information” and then select “Copy path”:

 

image

 

Step 5

Now, in the console we are going to execute the following:
 del /f /q /a “file path” 
image

 

Step 6

This command allows us to delete one or more files based on the criteria that we indicate, the parameters we have used are:

 

  • /f: is responsible for forcing the deletion of read-only files.
  • /q: activates silent mode, that is, it does not ask for confirmation of deleting the file.
  • /a: Allows you to delete files based on file attributes such as r (read-only files), h (hidden files), i (files without indexed content), s (system files), a (files ready to archive), ol (analysis points).

 

Step 7

After executing the command, we check that the file has been deleted:

 

image

 


2 How to delete folders in Windows 11

 

Step 1

Another option to use is to delete folders that give an error, for this method we first check the path where the folder is:

 

image

 

Step 2

We right click on Start and then click on “Terminal (administrator)”:

 

image

 

Step 3

We accept system permissions:

 

image

 

Step 4

First, in Explorer we select the folder to delete, click on “More information” and click on “Copy path”:

 

image

 

Step 5

Now in the console we are going to execute the following:
 rmdir /s /q “Folder path” 
image

 

Step 6

The rmdir command is responsible for deleting a Windows directory, the parameters used are:

 

  • /s: allows you to delete a directory tree including all files
  • /q: makes use of silent mode to not request confirmation of the process

 

Step 7

When it runs, we check that the folder has been deleted correctly:

 

image

 


3 How to delete zip files in Windows 11

 

Step 1

This is another option to use, deleting a compressed file, in this case we check the path where the file is located.

 

image

 

 

Step 2

Then, we right click on Start and click on “Terminal (Administrator)”:

 

image

 

Step 3

We accept the permissions:

 

image

 

Step 4

In Explorer, click on “More information” and click on “Copy path” on the file:

 

image

 

Step 5

Now, in the terminal, click on the top menu and select “Windows PowerShell”:

 

image

 

Step 6

In this mode, we execute the following command:
 Remove-Item -Path (zip file path) -force 
image

 

Step 7

We press Enter and then check that the file has been deleted:

 

image

 

These are comprehensive and functional ways to delete files and folders in PBC..

 


by (3.5m points)
edited

Related questions

+5 votes
1 answer
asked Oct 12, 2019 in Windows 10 by backtothefuture (552k points) | 234 views
+3 votes
1 answer
asked Aug 21, 2023 in Windows11 by backtothefuture (552k points) | 63 views
+3 votes
1 answer
asked Apr 3, 2023 in Windows11 by backtothefuture (552k points) | 67 views
+3 votes
1 answer
asked Mar 2, 2023 in Windows11 by backtothefuture (552k points) | 72 views
+5 votes
1 answer
asked Mar 1, 2023 in Windows11 by backtothefuture (552k points) | 66 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users