Last tested: November 6, 2026 · By Alex
The Destination folder already exists error stops WordPress from installing or updating a plugin or theme when a directory with the same slug is already on the server. WordPress refuses to overwrite that folder on purpose, so the install fails with a short message instead of risking a half-merged package.
I see this most often after a timed-out install, an interrupted update, a manual FTP upload, or a leftover folder from a plugin you thought you had removed. The fix is almost always the same: confirm the component is not already listed in wp-admin, delete the conflicting folder under wp-content/plugins or wp-content/themes, then reinstall cleanly.
This guide keeps every practical step from the shorter version and expands the FTP, permissions, temporary-folder, WP-CLI, and prevention paths. If the failure appears while an update is stuck behind a maintenance screen, clear that first with the WordPress stuck in maintenance mode guide, then come back here for the leftover folder.
Quick Fix
- Open Plugins or Appearance → Themes and check whether the item is already installed (even if inactive). Activate it instead of reinstalling when it is listed.
- In the host file manager or FTP, open
/wp-content/plugins/or/wp-content/themes/. - Delete (or temporarily rename) the folder whose name matches the plugin or theme slug.
- Also remove leftover names ending in
-tmp,.tmp, or-oldfor that same slug. - Return to wp-admin and install or upload the zip again.
- If deletion fails, set folder permissions to
755and file permissions to644, then retry. - Clear hosting cache, any WordPress cache plugin, and hard-refresh the browser before the next install attempt.
In most cases removing the leftover folder resolves the destination folder already exists message in under five minutes. Keep a note of the slug you deleted so you reinstall the correct package and not a similarly named fork.
What Is the Destination Folder Already Exists Error?

When you install a plugin from the directory, upload a zip, or run an update, WordPress unpacks the package into a destination directory named after the plugin or theme slug (for example wp-content/plugins/akismet). Before it writes files, it checks whether that path already exists. If it does, WordPress aborts with:
Destination folder already exists.
Installation failed.This is not a generic server 500 and it is not a database failure. It is a safety check inside the WordPress upgrader. Overwriting an existing folder blindly could mix old and new files, leave orphaned includes, or destroy custom changes someone made inside that directory.
You may also see close variants in logs or WP-CLI output such as “destination folder already exists” during wp plugin install or theme installs. The meaning is the same: clear the path, then run the install again.
Related install and file problems often travel with this one. Upload failures to the media library are covered in Error uploading image in WordPress. Permission denials that look like a blocked admin action are covered in 403 Forbidden in WordPress.
Why the Destination Folder Already Exists Error Happens

1. Incomplete Plugin or Theme Installation
If the browser tab closed, the PHP process timed out, or the connection dropped mid-unpack, WordPress can leave a partially created folder. The next attempt sees that folder and refuses to continue. Shared hosts with low max_execution_time values are especially prone to this on large page-builder or WooCommerce extension zips.
2. Plugin or Theme Already Installed
Sometimes the component is already on disk and listed under Plugins or Themes, but inactive. Reinstalling from Add New still targets the same slug, so WordPress blocks the unpack. Activate the existing copy, or delete it from wp-admin first if you truly need a clean package.
3. Manual FTP or File Manager Uploads
Uploading an unzipped plugin folder by hand (or extracting a zip twice into the same path) creates the destination before WordPress runs its installer. The dashboard install then collides with your manual copy. Either finish the manual install and activate it, or delete the manual folder and let WordPress unpack a fresh zip.
4. Failed or Interrupted Updates
During updates WordPress moves the old folder aside, unpacks the new one, then cleans up. A fatal error, timeout, or maintenance-mode interruption can leave plugin-slug, plugin-slug-tmp, or similarly named leftovers. The next update or reinstall hits destination folder already exists until those directories are removed.
5. File Permission or Ownership Problems
WordPress may try to remove an old folder before writing a new one. If the directory is owned by root from a prior SSH copy, or permissions are 555/700 with the wrong user, the cleanup step fails and the install aborts. Wrong ownership also shows up as failed to open stream or permission errors in debug.log.
6. Disk Space or Inode Exhaustion
A full disk or inode quota can stop an unpack mid-way and leave a broken folder behind. The next install then reports destination folder already exists even though the first attempt never finished. Check hosting panel quotas or run df -h and df -i over SSH before you retry large installs.
How to Fix Destination Folder Already Exists Step by Step

1. Confirm It Is Not Already Installed
Before deleting anything:
- Go to Plugins → Installed Plugins and search for the plugin name.
- Go to Appearance → Themes for theme installs.
- If it is listed and inactive, click Activate.
- If it is listed and you need a clean reinstall, use Delete in wp-admin first (that removes the folder when permissions allow), then install again.
Deleting from the dashboard is safer than FTP when it works, because WordPress can run uninstall hooks. Use FTP when the dashboard delete fails or wp-admin will not load.
2. Delete the Folder via Host File Manager
This is the fix I use most on shared hosting:
- Open cPanel File Manager, hPanel, Plesk, or your host equivalent.
- Navigate to
public_html/wp-content/plugins/(or/themes/). On some hosts the web root iswwwor a domain-named folder. - Find the folder whose name matches the slug in the error or the zip you are installing (lowercase, hyphens, no
.zip). - Select it and Delete. If you are unsure, Rename it to
slug-brokenfirst so you can restore it. - Return to wp-admin → Add Plugin / Add Theme and install again.
If the UI still shows the old name after deletion, hard-refresh and clear any server cache. Opcode caches do not usually keep directory listings, but reverse proxies and admin AJAX caches sometimes serve a stale failure toast.
3. Delete the Folder via FTP or SFTP
When File Manager is unavailable or times out on large trees:
- Connect with FileZilla, WinSCP, Cyberduck, or
sftpusing the host credentials. - Navigate to
/wp-content/plugins/or/wp-content/themes/. - Delete the conflicting directory.
- Disconnect, then retry the install from wp-admin.
If you prefer the shell:
cd /path/to/wordpress/wp-content/plugins
ls -la | grep slug-name
rm -rf slug-name
# or safer:
mv slug-name slug-name-broken-$(date +%Y%m%d)Only run rm -rf when you are certain of the path. A typo in that directory is destructive.
4. Clear Temporary and Leftover Update Folders
After failed updates, look for siblings of the real slug:
plugin-slug-tmporplugin-slug.tmpplugin-slug-oldorplugin-slug-backup- Partially extracted names created by the host file manager
- Empty directories with the correct slug but almost no files inside
Delete those leftovers as well. WordPress only needs a clear destination path; keeping a half-extracted tree guarantees the next run fails the same way.
5. Fix Permissions and Ownership
Recommended baseline for most shared hosts:
- Directories:
755 - Files:
644 - Owner: the same user PHP runs as (often your cPanel account, or
www-data/nginxon a VPS)
# example on a VPS — adjust user/group to match PHP-FPM
cd /var/www/example.com
find wp-content/plugins -type d -exec chmod 755 {} \;
find wp-content/plugins -type f -exec chmod 644 {} \;
# chown -R www-data:www-data wp-content/plugins/problem-slugIf wp-admin still cannot delete or create folders after that, security plugins, Imunify, or open_basedir rules may be blocking writes. Temporarily disable the security plugin and retry, or ask the host whether the account is in a read-only jail. Persistent permission blocks often surface as 403 Forbidden on admin-ajax or update URLs.
6. Reinstall Cleanly (Dashboard, Upload, or WP-CLI)
Once the path is clear:
- Directory install: Plugins → Add New → search → Install → Activate.
- Zip upload: Upload Plugin / Upload Theme — use the official zip, not a macOS-duplicated “plugin-slug (1).zip” that unpacks to a weird folder name.
- WP-CLI:
wp plugin install plugin-slug --activateorwp plugin install ./plugin.zip --force.
wp plugin install plugin-slug --activate
wp theme install theme-slug --activate
wp plugin install ./local-plugin.zip --forceThe --force flag helps WP-CLI overwrite when you intentionally replace files, but a stubborn leftover directory can still require a manual delete first. If a fatal appears right after activation, switch to the critical error on this website playbook.
7. Clear Caches and Retry
Clear the host cache panel, any page-cache or object-cache plugin, CDN cache if you use one, and your browser cache. Then retry the install once. Cached admin responses occasionally replay the previous failure notice even after the folder is gone.
Advanced Troubleshooting
Enable Debug Logging During Installs
If the UI only says Installation failed without a useful path, add this above /* That’s all, stop editing! */ in wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);Reproduce the install once, then read wp-content/debug.log. Look for permission denied, no space left, or unzip failures. Turn WP_DEBUG back to false when you finish.
Watch Disk Space and Unzip Limits
Large themes and bundled page-builder packs need temporary space roughly twice the zip size while unpacking. Raise upload_max_filesize and post_max_size if the zip upload itself fails, and confirm the host allows the ZipArchive PHP extension. When unzip never starts, the problem is upload limits; when unzip starts and stops, look for leftovers and disk space.
Staging vs Production Slug Collisions
Copying a site with a plugin already present, then trying to install the same slug again from a different zip (nulled packs, renamed forks, or “pro” uploads) triggers destination folder already exists immediately. Delete the existing slug or install on staging with a clean wp-content.
Must-Use Plugins and Drop-ins
Must-use plugins live in wp-content/mu-plugins and are not installed through the normal plugin installer destination for wp-content/plugins. Do not confuse an mu-plugin PHP file with a missing folder under plugins. Drop-ins such as object-cache.php are single files in wp-content, not theme/plugin destinations.
When Installs Fail Into a White Screen or Critical Error
If deleting the folder succeeds but activating the plugin whites out the site, you have moved past this error into a PHP fatal. Use White Screen of Death or critical error on this website next. If REST or block-editor installs fail oddly while front-end FTP installs work, see WordPress REST API error.
Does Destination Folder Already Exists Affect SEO?
The error itself does not change rankings. Visitors never see it unless they are administrators. The SEO risk is indirect: you cannot install or update SEO, caching, security, or schema plugins while the destination is blocked. Fix the folder quickly, then complete the updates you postponed so the public site keeps the intended performance and metadata stack.
How to Prevent This Error
- Let WordPress finish installs and updates; do not close the tab mid-progress.
- Prefer dashboard Delete before a manual reinstall so uninstall hooks can run.
- Avoid uploading unzipped plugin folders by FTP unless you skip the dashboard installer entirely.
- After any failed update, inspect
wp-content/pluginsfor-tmp/-oldleftovers immediately. - Keep disk quota headroom; large sites need free space for unpack + backup plugins.
- Use staging for bulk updates so production is not left half-upgraded.
- On VPS hosts, ensure deploy scripts chown files to the PHP user after rsync or git pulls.
When to Contact Hosting Support
Escalate when:
- You cannot delete or rename the folder even as the account owner.
- Permissions reset after every deploy or nightly scan.
- The disk or inode quota is full and only the host can extend it.
- Imunify, mod_security, or a WAF blocks unzip / admin-ajax install requests.
- SFTP works but the PHP user still cannot write under
wp-content.
Send the exact plugin slug, a screenshot of the error, and the output of ls -la on the parent directory. That package skips a round of generic “reinstall WordPress” advice.
Frequently Asked Questions
WordPress found a directory with the same plugin or theme slug already on the server and refused to overwrite it during install or update.
No. It is a safety check, not a hack. The risk is only that you cannot finish installing or updating until the leftover folder is removed.
Not through the normal dashboard installer. Delete or rename the existing folder first, then install again. Even WP-CLI force mode still needs a writable path.
Interrupted updates leave the original folder, a tmp copy, or both. The next update sees the destination and stops until you clean those directories.
From wp-content/plugins for plugins or wp-content/themes for themes, using the host file manager, FTP/SFTP, or SSH. Match the folder name to the plugin or theme slug.
Many plugins store settings in the database, so options often survive a folder delete. Anything stored only as files inside that folder is removed, so export settings first when the plugin offers it.
Final Thoughts
A destination folder already exists message means WordPress is protecting you from a messy overwrite. Check whether the plugin or theme is already installed, delete or rename the leftover slug under wp-content/plugins or themes, clear tmp leftovers, fix permissions if delete fails, then reinstall once.
If activation then fatals, jump to the critical error or white screen guides. For upload and permission cousins of this problem, see error uploading image and 403 Forbidden.
Related WordPress Errors
- Error Uploading Image in WordPress
- 403 Forbidden in WordPress
- WordPress Stuck in Maintenance Mode
- Failed to Open Stream in WordPress
- Critical Error on This Website
- White Screen of Death
- WordPress REST API Error
Hi, I’m Alex — the person behind ErrorRescue.
I’ve been working with websites, servers, and hosting for over 8 years. Most of my experience comes from troubleshooting real problems on WordPress sites, VPS and shared hosting environments, and Cloudflare setups. I’ve dealt with everything from SSL certificate failures and DNS misconfigurations to 504 timeouts, memory exhaustion errors, and Cloudflare 5xx issues.
I started ErrorRescue because I got tired of seeing generic, outdated, or incomplete error guides. My goal is to write clear, practical fixes based on what actually works in production — not just theory. Every guide here is tested against common server setups (Apache, NGINX, Cloudflare, and popular WordPress stacks).
When I’m not fixing sites, I’m usually reviewing new hosting configurations or updating existing guides so they stay accurate.
