How to Delete Folders and Subfolders in Document Management System Folders


How to Delete Folders and Subfolders in Document Management System Folders

Why Folder Deletion Control Matters in Enterprise Document Management

As organizations grow, so do their document management system folders. Projects close, team structures shift, and document repositories accumulate outdated hierarchies that slow navigation and obscure active files. Without proper controls, cleanup efforts risk deleting compliance records, audit trails, or files still under review.

Onfinity ERP addresses this by requiring permission validation before any folder removal. Users can only delete folders containing documents they have explicit rights to remove. All files must be checked in, preventing deletion of documents currently being edited. This combination of access control and file state verification protects critical business records while enabling administrators to retire obsolete folder structures confidently.

How Parent Folder Deletion Works in Onfinity ERP

Parent folder deletion removes the entire folder structure in one action. This includes all subfolders nested within it and every document stored across the hierarchy. The system enforces two key safeguards before proceeding.

First, all documents must be checked in. If any file remains checked out for editing, the deletion cannot proceed. This prevents removing documents that team members are actively working on.

Second, the user must hold deletion permissions for every document within the folder tree. If even one file falls outside their access rights, the system blocks the entire operation. This ensures no unauthorized removal of records tied to DMS folder permissions assigned to other users or departments.

Once these conditions are met, the system displays a confirmation prompt. It warns that deleted documents cannot be recovered from the recycle bin, reinforcing the permanence of the action. After confirmation, the folder and its contents are removed, and an information message lists exactly what was deleted for audit purposes.

Using Subfolder Deletion to Clean Parent Folder Hierarchies

Subfolder deletion offers a different approach. It removes all child folders beneath a selected parent but leaves the parent folder itself intact. This is useful when reorganizing hierarchies without retiring the top-level container.

Only folder owners or users granted explicit permissions can execute this action. As with parent folder deletion, all documents inside the subfolders must be checked in, and the user must have deletion rights for every file.

One operational detail sets subfolder deletion apart: it also removes any documents stored directly in the parent folder. This means the action blanks the parent folder’s contents entirely while preserving its structure. After deletion, the system provides detailed feedback showing which subfolders and documents were removed, supporting audit requirements and operational transparency.

Permission Requirements and Deletion Safeguards

Folder deletion in Onfinity ERP requires an admin role with organization access and DMS form access. These permissions ensure only authorized users can remove document structures that may span multiple departments or projects.

The check-in requirement prevents conflicts during deletion. If a colleague has a document checked out for editing, the system blocks the folder removal until that file is checked back in. This avoids scenarios where a user loses work because someone else deleted the containing folder.

Permission validation runs across every document in the targeted folder structure. If the user lacks deletion rights for any single file, the entire operation is rejected. This granular control prevents partial deletions that could leave broken folder hierarchies or orphaned documents.

Confirmation prompts appear before any deletion executes, displaying a clear warning that removed documents cannot be recovered. Because Onfinity ERP does not support recycle bin recovery for folder deletions, this prompt serves as a final checkpoint before permanent removal. The system then logs exactly what was deleted, creating an audit trail for compliance and operational review.

When to Use Folder vs Subfolder Deletion in Your ERP Workflow

Parent folder deletion suits scenarios where an entire document structure is being retired. This includes closed projects, deprecated file hierarchies, or organizational units that no longer exist. Removing the parent folder and all nested content in one action eliminates clutter and simplifies navigation for active users.

Subfolder deletion works best when reorganizing hierarchies without discarding the top-level folder. For example, a finance team might blank a quarterly folder’s subfolders to prepare for a new reporting cycle while keeping the parent folder active for continuity.

Before initiating either action, verify that all team members have checked in their documents. Review enterprise document organization policies to confirm that folders targeted for deletion do not contain compliance records subject to retention requirements. Because deleted documents cannot be recovered, aligning deletion workflows with broader retention and audit policies prevents unintended data loss.

Onfinity ERP integrates these folder management controls with other operational modules, ensuring document lifecycle decisions align with project timelines, financial close processes, and regulatory obligations tracked elsewhere in the platform.

See Folder Deletion Controls in Action

If your team manages growing document repositories and needs to retire outdated folder structures without risking compliance records, see how folder actions work in Onfinity. The platform enforces permission checks, file state validation, and audit logging to support safe, controlled document cleanup.

Follow us on LinkedIn for more practical guidance on managing document workflows in enterprise ERP environments.

Watch how this works in Onfinity ERP: