SharePoint Document Issues

Fix SharePoint Designer 2013 Workflow Not Deleting Old Files

Tauseeq MagsiTauseeq Magsi Oct 28, 2026 868 views

Question details

Users are experiencing an issue where a SharePoint Designer 2013 workflow triggers correctly upon document creation but fails to execute the action to delete the older, previous file.

Fix SharePoint Designer 2013 Workflow Not Deleting Old Files
Product
SharePoint Server 2013
Device & OS
not provided
Scenario
Automating document version control or cleaning up directories using SharePoint Designer workflows in an on-premises server environment.
Observed behavior
The workflow starts without errors when a new document is added, but the specific step designed to delete the previous file fails, leaving outdated documents in the library.
Before you start

Ensure you have Site Collection Administrator privileges to modify workflow logic and view detailed library permissions in SharePoint Designer.

Solution 1Recommended

Verify Workflow Configurations and Library Permissions

Check the workflow's internal logic, target item references, and account permissions to ensure it has the proper authority to delete files in the library.

In many cases, file deletion failures in SharePoint workflows stem from incorrect item references (pointing to the new file instead of the old one) or insufficient permissions granted to the workflow service account.

1
Open the workflow in SharePoint Designer

Launch SharePoint Designer 2013, connect to your on-premises site, and navigate to the specific list workflow that is failing to delete the file.

2
Verify the 'Delete Item' action reference

Review the 'Delete Item in...' action. Ensure the item reference is strictly pointing to the ID or URL of the previous file, and not accidentally referencing the 'Current Item'.

3
Check workflow permissions

Verify that the account executing the workflow has 'Delete Items' permissions on the target document library. If necessary, wrap the deletion action inside an 'App Step' to elevate workflow permissions.

4
Review library retention policies

Navigate to the library settings in your web browser and ensure there are no strict retention policies, records management rules, or required check-outs preventing automated file deletion.

Verify Workflow Configurations and Library Permissions
Environment Specifics: For on-premises SharePoint Server 2013 environments, checking the SharePoint ULS (Unified Logging Service) logs can provide detailed error codes regarding why the deletion action failed.
Free Microsoft Office alternative

Looking for a Simpler Way to Manage Documents? Try WPS Office

While SharePoint handles complex server-side workflows, creating and editing your daily documents shouldn't be complicated. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office for writing, calculating, and presenting effortlessly.

  1. 1. Download the software: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install and launch: Follow the straightforward installation prompts, then open WPS Office to access Writer, Spreadsheets, and Presentation.
  3. 3. Open existing files: Drag and drop your existing Microsoft Office or SharePoint-synced documents directly into WPS Office to start editing immediately.
Fully compatible with Microsoft Office formats like .docx, .xlsx, and .pptx.Free, lightweight, and fast to launch on any PC or mobile device.Familiar, intuitive user interface making migration seamless.Built-in robust PDF editing and simple document sharing tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my SharePoint workflow say 'Access Denied' when trying to delete a file?

This usually occurs when the account running the workflow does not have the necessary 'Delete Items' permission level in the target SharePoint library. To fix this, you may need to grant the workflow elevated permissions by utilizing an App Step.

Can a SharePoint Designer 2013 workflow delete files located in another site collection?

By default, SharePoint Designer workflows are scoped to the site where they are created. To interact with or delete files in a different site collection, you typically need to construct a REST API call using the 'Call HTTP Web Service' action.

Does WPS Office integrate with SharePoint for document editing?

Yes, you can easily open and edit documents stored on SharePoint directly using WPS Office by syncing the SharePoint library to your local device via OneDrive, or by utilizing standard WebDAV network drive connections.