+4 votes
277 views
Command to force and delete files or folders Windows 10, 8, 7

in Windows 10 by (552k points)
reopened | 277 views

1 Answer

+5 votes
Best answer

1. Force deletion of a file in Windows 10, 8, 7
2. Force deletion of a folder in Windows 10, 8, 7
3. Change permissions to delete Windows 10 folder or delete locked files or folders
4. Copy or move files or folders with Windows 10, 8, 7 commands

The amount of information that we store on our computers is quite wide, since the functions and tasks we carry out with it are increasingly numerous. We use these devices for many things such as the creation and management of documents , the search for information through the web, the review of our email or the download of different documentation. That is why much of this information is stored on our PC in the form of files or folders..

Every day we create new files and folders in Windows due to our responsibilities and it is useful to carry a much more correct order of the elements to use. It is normal, everything happens to us, that we are filled with hundreds of files or folders that are no longer necessary and this incurs in having a set of elements that occupy space unnecessarily and that can become a mess.

It is normal for us to delete a file by right clicking on it and selecting the Delete option:

image

But sometimes the file is not deleted for some reason of permissions or configuration and in this case it is useful to use the command prompt to force the deletion of these files with total security.
Now, we will see how to achieve this in Windows 10..

To keep up, remember to subscribe to our YouTube channel! SUBSCRIBE


1. Force deletion of a file in Windows 10, 8, 7

Step 1

To delete a file in Windows 10 we must access the command prompt as administrators and, once there, we can execute the following syntax:
 DEL / F / Q / A “File path” 
Step 2

The parameters to use are:
/F
Force file deletion.
/ Q
Ensures forced deletion of read-only files.
/TO
Select only the files with the attribute ready for archiving.
image

2. Force deletion of a folder in Windows 10, 8, 7


From the same command prompt, as administrators, it will be possible to force the deletion of a folder in the system.
Step 1

To do this we must execute the following syntax:
 RD / S / Q “File path” 
Step 2

In this case the parameters are:
RD
Execute the Remove Directory command.
/ S
Delete subfolders and files.
/ Q
Delete all directories without confirmation for the user.
image

We can see how the Command Prompt is a useful tool to execute this type of tasks in Windows 10.


3. Change permissions to delete Windows 10 folder or delete locked files or folders


We may not be able to delete a folder because we do not have the necessary permissions or because this folder is locked.
Change permissions to delete modify folder Windows 10
The folders can have different permissions, so perhaps some of the folders you want to delete is not enabled for this and you have to change these permissions. Next you will see a link that explains step by step in detail how to change the permissions of the folders in Windows 10 since this way we can edit this configuration and finally delete this folder if it is what we want.
How to delete locked files or folders in Windows 10
Another problem that we can find that we will not be able to delete a file or a folder in Windows 10, is because this file is open by another application or process, and there Windows 10 sets the status of the file as locked and not we can delete it, modify it or move it to another location. In these cases, it is best that we know how we can unlock this file without damaging it. In the following tutorial you will see all the steps you must follow to carry out this process in a simple way.

4. Copy or move files or folders with Windows 10, 8, 7 commands


We may not want these folders or files to be completely deleted, but we prefer that they be moved to another location or copied. In this way we will not be losing all this information, but we will simply be moving it from place to order our desk.

This could also be done with commands, so that it is not easier to carry out this task. The commands that can be used are two, so below you have the link to a tutorial in which we show you all the steps you must follow to use each of these commands, and copy or move files and folders from Windows 10 ..

As you can see, there are different options to delete files or folders in Windows 10, 8, 7 and free your computer space.


by (3.5m points)
edited

Related questions

+4 votes
1 answer
+5 votes
1 answer
+4 votes
1 answer
asked Nov 2, 2019 in Windows 10 by backtothefuture (552k points) | 224 views
+4 votes
1 answer
asked Nov 20, 2019 in Windows 10 by backtothefuture (552k points) | 471 views
+5 votes
1 answer
asked Oct 5, 2019 in Windows 10 by backtothefuture (552k points) | 852 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