GiliSoft File Lock Pro

How to Prevent a Folder from Being Deleted on Windows

Hide, lock, protect, encrypt, shred, and monitor selected Windows data from one local workspace.

GiliSoft File Lock Pro protection illustration

How to Prevent a Folder from Being Deleted on Windows

A folder-level rule can affect every file and subfolder beneath it. That makes it useful for shared templates or reference libraries, but it can also interrupt applications that create temporary files, rename documents, or save updates inside the folder.

Quick answer

Make a recoverable copy before applying a broad rule and confirm that the copy opens correctly. Back up the target first, apply the narrowest useful rule, and test both authorized access and the action that should be blocked.

Plan Folder Protection Before Applying It

SituationRecommended approachCheck carefully
Reference folder that should not changeProtect the folder from write, rename, and delete actionsApplications that expect to update indexes
Shared working folderProtect only stable subfolders or approved filesCollaboration and save permissions
Private folder that should not be visibleUse Hide or Lock insteadProtection does not conceal names or contents
Important folder requiring recoveryUse versioned backup as wellProtection cannot repair corruption

Step-by-Step Workflow

  1. Map the folder and its users

    List the files, subfolders, applications, accounts, and scheduled jobs that read or modify the location.

  2. Create and verify a backup

    Make a recoverable copy before applying a broad rule and confirm that the copy opens correctly.

  3. Add the exact folder in Prevent Changes

    In GiliSoft File Lock Pro, choose the folder-protection workspace and avoid selecting a drive root unless that scope is intentional.

  4. Test inheritance and normal work

    Using a standard account, test opening, creating, editing, renaming, moving, and deleting files in the protected folder.

  5. Record exceptions and recovery

    Document approved applications, the administrator password, and how to remove the rule if a workflow is blocked.

See the File Lock Pro user guide for every workspace, password recovery, and related protection task.

GiliSoft File Lock Pro Interface

These product screenshots connect the workflow to the relevant local Windows controls.

GiliSoft File Lock Pro task interface
Use the current File Lock Pro workspace for the selected task.
GiliSoft File Lock Pro settings interface
Review the relevant settings and test the result.

Review the Protection Boundary

  • Keep a verified backup before applying broad access or write restrictions.
  • Use a standard user account to test both the permitted workflow and the blocked action.
  • Protect the administration password and document how authorized recovery works.
  • Keep Windows Security enabled and use encryption when offline data exposure is in scope.
Important: A parent-folder rule may affect all descendants and can block legitimate software. Pilot the setting on a test folder before protecting production data.

Frequently Asked Questions

Does folder protection apply to subfolders?

It may, depending on the selected rule and product behavior. Test representative nested folders before rollout.

Can users still read the files?

A prevent-write or prevent-delete rule can allow reading, but the exact behavior depends on the selected options. Verify it.

Is this the same as password-locking a folder?

No. Prevent Changes controls modification; locking controls access. Choose the task that matches the risk.

Do I still need a backup?

Yes. Access controls do not recover files from hardware failure, corruption, or every form of malware.

Protect the exact Windows data you intend

Use the narrowest control, verify normal work, and preserve a recovery path.