How To Create Undeletable And Unrenamable Folder In Windows

How To Create Undeletable And Unrenamable Folder In Windows
PC tips and tricks

How To Create Undeletable And Unrenamable Folder In Windows

To safeguard our files and folders from illegal access, we have various tools and security measures accessible in Windows OS. We can use software and password folders to lock them away to keep our data safe.

It is essential to keep your files and folders protected to avoid data loss threats and illegal access. If you work or own an organization, you might need to keep your folders protected. You may have significant and sensitive data of your organization that you don’t want to lose or don’t want in the wrong hands.

You can create a folder on Windows that no one can delete or rename. Hence no one can delete or modify your folder, and you can keep your files and documents safe from illegal access. 

In this article, we’ll show you how to create a new undeletable and unrenamable folder in windows, as well as how to make an extant folder that no one can destroy or alter without your permission.

Ways to create a new undeletable and unrenamable folder in Windows

There are various methods to carry out this task, but we have listed the best two effective and working ways.

Using Command Prompt:

Using Command Prompt

There are two primary methods of creating folders in windows that cannot be deleted or renamed. The first method is using the command prompt.

Follow the below-mentioned steps to create such a folder using command prompt:

  1. To begin, go to Start and select Run.
  2. Now type cmd and press enter.
  3. Remember that you can’t construct any undeletable or unrenamable folders in your storage’s root directory, i.e., drive C.
  4. Type D, E, F, etc., and then press enter to select a drive.
  5. Enter the command md lpt1. 
  6. When you open the directory, you’ll notice the folder generated by name con. Now you can keep your essential files and documents in that folder.
  7. Now let’s see if you can delete or rename the folder. When you try to delete or rename it, Windows will display an error notice. 

Follow the steps mentioned above to create a folder that can’t be deleted or renamed using the command prompt. 

Denying Security Permission:

This is the simplest method for making any folder not delectable or renamable. With this method, you can disable deleting or renaming any existing folder.

The second essential and functioning method to create a folder in Windows that can’t be deleted or renamed is with the help of denying security permissions. 

Follow the below-given steps:

  1. Firstly, you must create a folder or choose any folder.
  2. Now right-click on it and select Properties from the drop-down menu.
  3. Now go to the Security tab and select Edit from the menu.
  4. Select Users from the drop-down menu.
  5. Now you must change the complete control authorization to deny.
  6. Attempt to delete or rename the folder now. The error notice to do t you need permissions activity will appear.
  7. If you want to undo the changes, go to the Security tab, click Edit, and set the permissions for everyone to have complete access.

Following the steps mentioned above, you can create an undeletable and unrenamable folder in Windows. The best thing is that this method does not necessitate using a third-party application.

How To Delete The Unrenamable and Undeletable Folder

You’ve now created an undeletable and unnamable folder in windows, but you wish to get rid of it for whatever reason. To delete or rename that file, follow the procedures below:

  1. Firstly, open the command prompt.
  2. There, press F (assuming the folder was created on the F disk)
  3. Now press enter.
  4. To delete the con folder, you must first delete the contents inside it.
  5. rd lpt1 (rd-delete directory) is now their command.
  6. Now reopen the directory, now the folder will be removed.

Follow the above steps to delete the con folder, i.e., no one can rename or delete the folder.

Click here to know about the best screenshot tools and best screen recorder tools for Windows.


It’s vital to keep your folders and files secure from illegal access. You can do this with various methods, but the efficient and straightforward process is to save your folders on windows by creating a folder undeletable and unrenamable.

You can effectively ensure that the folder containing your data, such as photos, videos, audios, documents, etc. protected from unauthorized access. This article provides all the necessary information about creating an undeletable and unrenamable folder in windows.

Leave your thought here

Your email address will not be published. Required fields are marked *