Some ways to prevent deletion:

  • Modify ownership of the folder.
    • Right-clik the folder and select Properties.
    • On the Security tab, select Advanced.
    • On the Permissions tab, Disable inheritance, removing all inherited permissions.
    • This denies permission to do anything to that folder, until you assign an owner and set permissions for that owner. Of course, that owner should be able to delete the folder... so you might want to create a new user for that purpose.
  • Use third-party software, such as TunesBro Folder Unbreak or an alternative. N.B. Check reviews and use VirsuTtoal to look for malware before installing any software.
Answer from DrMoishe Pippik on Stack Exchange
🌐
Reddit
reddit.com › r/windows10 › how do i protect a folder from accidental deletion?
r/Windows10 on Reddit: How do I protect a folder from accidental deletion?
April 13, 2021 -

So I have a huge 7tb folder, I can't spread this into several other folders and preferably not even move the contents at all, and I wanna know how to make this folder, not undeleteable per say, but make it so if I have the folder highlighted and my cat steps on the DEL button, literal weeks of work won't be gone.

Bear in mind I still need to work in this folder, so the whole "deny all permissions" thing is a no-go.

Discussions

Protect files from being deleted
How do I protect files and/or folders from being deleted? Our Photos and Videos are our most valuable possession and they need better protection - from us. We back up to external drives. But, we would also like to “lock” the files to ensure that when… More on learn.microsoft.com
🌐 learn.microsoft.com
32
460
how to stop domain user to delete any folder file from Desktop and access C drive, I have already blocked the C drive but not able to stop user from deleting folder file from desktop through group policy.
how to stop domain user to delete any folder file from Desktop and access C drive, I have already blocked the C drive but not able to stop user from deleting folder file from desktop through group policy. More on learn.microsoft.com
🌐 learn.microsoft.com
2
0
January 7, 2024
Best practice for preventing folder deletion
Due to accidental folder deletion happening too often we’d like to set up folder permissions on the server so that users cannot delete folders/subfolders or files (that they did not create). Two people have been assigned to maintain folders and they can delete and they will be assigned to ... More on community.spiceworks.com
🌐 community.spiceworks.com
7
13
October 25, 2019
Is it possible to protect files to keep them from being accidentally deleted?
I think you should seriously consider safest option than a single copy on an external HDD. You have no idea how close you are to loose everything on it. Maybe duplicates those files on a NAS using something like Syncthings. Or put them in a cloud storage provider like Dropbox or Onedrive. More on reddit.com
🌐 r/windows
7
0
December 5, 2022
🌐
Windows 10 Forums
tenforums.com › general-support › 217444-prevent-individual-folders-deletion.html
Prevent individual folders from deletion - Windows 10 Help Forums
I haven't disabled it but I use Shift-Del to delete, what deletes at once instead of moving to the Recycle Bin. I believe its size can be set, along with other settings like the amount of time it will hold an item and so on. I like to open a window for each folder, and I like some folders to open always in the same positions with the same sizes.
Top answer
1 of 3
8

Hi Shawn,

Thanks for the note.  Where is the "delete" permission?  Is that the same as the "write" permission?

Thanks.

2 of 3
5

Deny permissions always take precedence over allow permissions, so the easiest way to do what you want is to...

1 - Set "Everyone" as "Deny" for "delete".  Leave the other permissions in-tact.

It doesn't matter who the owner is, everyone will be blocked from deleting the files until they go through the steps to take ownership and then remove the deny permission, then go back and delete.

You'll retain your ability to add tags and such.


Well... that didn't work for me.

The scenario is this:

  • The "server" is a Windows 7 PC
  • It has 1 administrator user (admin1) and some others normal users (user1, user2, user3...)
  • The file was created by the administrator user and it is located on a share where all users can access and write/change contents (add and delete files and modify contents)
  • There is a particular file that I don't want to be accidentally deleted. It has daily backups... but it is constantly being modified (information added)

What I tried:

  • Right lick on file > Properties
  • Click on 'Security' tab then on 'Advanced' button
  • On Permissions tab, I click on 'Add', then on 'Select a principal', type 'Everyone' and click OK
  • Back to the other Window/Box, I click on 'Show advanced permissions'... and there the checkbox 'Delete' is unchecked (all the rest of checkboxes I keep as they are)
  • On another PC, connected trough network to it as a "normal user", the user accesses the folder where the file is located... and he simply can delete the file

So... what am I doing wrong?

Can you tell me step-by-step what to do, so I can put this working? Can you simulate my scenario and test ir by yourself?

I would appreciate that...

Thank you!

🌐
MajorGeeks
majorgeeks.com › tutorials and video guides › how to protect files and folders from being deleted
How to Protect Files and Folders from Being Deleted - MajorGeeks
June 15, 2023 - A common problem in Windows is accidentally deleting files and folders. In this guide, we show you how you can protect your files or folders from being deleted. Depending on your preferences, you can protect files and folders using Windows Explorer or File Explorer, the Command Prompt, or third-party freeware.
🌐
iSumsoft
isumsoft.com › windows-tips › how-to-protect-files-from-being-deleted.html
2 Ways to Protect Files from Being Deleted in Windows 10
This simple method also enables you to protect files from being deleted. Here are the steps: Step 1: Hide the file. Locate the file and right-click it to open the Properties dialog box. In the General tab, click on the radio button Hidden. Then click the Apply button and the OK button. Step 2: Disable to view hidden files. Enter the File Explorer window and select the View tab. Then in the Options tab, select Change folder and search options.
🌐
Quora
quora.com › How-do-I-prevent-a-folder-or-file-from-being-deleted
How to prevent a folder or file from being deleted - Quora
Answer (1 of 5): Depends on your file system (mostly). E.g. if using a FAT based file system (like FAT32) your only option is to set the file’s / folder’s read-only attribute. Though that means the file cannot be changed either. And also, there’s nothing to stop someone from unsetting ...
🌐
MakeUseOf
makeuseof.com › home › windows › 4 ways to protect your files from being deleted in windows 10
4 Ways to Protect Your Files From Being Deleted in Windows 10
April 4, 2021 - In the Permissions window, select the Everyone user name. From here, go to the Permissions for Everyone section. Check the Deny box next to the Full control option. Hit Apply > OK. Your file or folder will now be secured. As long as you don’t change the permissions settings, no one will be able to delete the file or folder.
Find elsewhere
🌐
TunesBro
tunesbro.com › prevent-file-folder-being-deleted.html
How to Prevent File or Folder from Being Deleted on Windows 10
Each time the program is launched, ... Hiding File, Locking File, and Protecting File. Just simply select Protecting File at the left sidebar and add the file or folder you wish to prevent from being deleted....
🌐
The Windows Club
thewindowsclub.com › the windows club › protect files or folders from being deleted accidentally on pc
How to protect Files or Folders from being deleted accidentally in Windows 11
March 22, 2025 - Windows used to offer a confirmation dialogue box that popped up every time you deleted a file. You can enable it using the Recycle Bin settings, Group Policy Editor, and Registry settings. It will be helpful to give you a hint on what you are doing and save the files and folders at times.
🌐
Reddit
reddit.com › r/windows › is it possible to protect files to keep them from being accidentally deleted?
r/windows on Reddit: Is it possible to protect files to keep them from being accidentally deleted?
December 5, 2022 -

I have an external hard drive that has every project I've ever made on it, and I regularly go through and update things and clean it up and whatnot. I was wondering if there's a way to mark specific folders so that they don't get accidentally deleted or written over. Is that possible?

For example, if you selected that file (or folder) and pressed "delete," it would delete the others but leave the protected files alone? I've seen things online to give certain permissions to do things like this using the "Security" tab, but I'm the only one who uses my computer. I just want to protect it from accidents, not specific users or anything.

🌐
The Geek Page
thegeekpage.com › prevent-files-from-getting-deleted-in-windows-10
How to prevent files from getting deleted in Windows 10
February 25, 2021 - Step 1: Look out for the file/folder that is to be protected, right-click on the file/folder and choose Properties ... Under Group or Usernames section, click on the Username that you want.
🌐
EaseUS
toolbox.easeus.com › file lock › how do i protect files from being deleted in windows 11/10
How Do I Protect Files from Being Deleted in Windows 11/10 (4 Simple Methods) - EaseUS
April 15, 2025 - EaseUS LockMyFile features list might be a bit lengthy, but it is super easy to protect your files from being deleted on Windows 11/10 with the program. You simply have to follow these steps: Step 1. Launch EaseUS LockMyFile, enter the valid email, and set password to register. Step 2. Click Protecting File under the Local Disk. Select Protect File(s) ,Folder or drive from the right panel.
Top answer
1 of 1
6

As a rule of thumb, you should avoid explicit DENY rules in ACLs. If one is required, it is often because the data is already structured wrong.

The ability to delete or rename a folder is not decided by the Delete permissions on the folder in question, but by the Delete subfolders and files permission on the parent folder. This is counter-intuitive and different from how permissions for a file work. It definitely doesn't work as you would expect.

Let's use the following folder / file structure as an example:

FolderA
    File1
    FolderB
        File2
        FolderC
            File3

FolderB and File1 are in parent FolderA. FolderC and File2 are in parent FolderB and so on.

Now, if we remove the Delete permission from File1, File2, or File3, for any user, that user will be prevented from renaming and deleting the file. This is also true if you use an explicit DENY Delete on the file.

However, if you remove the Delete permission from FolderA, FolderB, or FolderC, for any user, that user will still be able to rename and delete the folder. This is also true if you use an explicit DENY Delete on the folder.

Why is that? Because the Delete permission is a permission that applies to files, not folders. Instead, we must remove the Delete subfolders and files permission from the parent folder to accomplish what you are asking.

In our above example, we will need to remove the Delete subfolders and files permission from FolderA, for a particular user, assigning the permission to this folder only. In that case, the user will then be unable to modify FolderB and File1. The same is true if you use an explicit DENY Delete subfolders and files on FolderA instead.

The user can still rename and delete FolderA unless the parent of FolderA has also restricted that permission. As long as you applied the permission to this folder only then the user will continue to be able to read/write/modify File2, FolderC and File3.

The obvious drawback here is that it takes 2 levels of folders to accomplish what you are asking. In your case, you mention that you are trying to protect a Dropbox folder. So, your folder structure would have to look like this:

Dropbox
    Protected Folders
        File1
        File2
        FolderA
    Protected Files

You would remove, for a particular user or group, the Delete subfolders and files permission for this folder only on the Dropbox folder. You would then add or maintain, for a particular user or group, Full Control or Modify permissions for subfolders and files on the Dropbox folder.

Now the affected user will be unable to modify any files or folders immediately below the Dropbox folder, but will be able to modify all files and folders contained in any subfolders.

There is an additional concern here with Dropbox, because this is not a normal folder. The Dropbox application expects full control of the Dropbox folder. Being that Dropbox often runs as the logged on user, you can't prevent the logged on user from having full control of the Dropbox folder. You can try it, but the results may be unpredictable and chaos is likely to ensue.