# WordPress stuck in maintenance mode: fix

URL: https://wp24x7.com/fix/wordpress-stuck-in-maintenance-mode/
Updated: 2026-11-29
Type: page
Audience: site owners whose site shows a maintenance message

> The message 'Briefly unavailable for scheduled maintenance' appears while WordPress updates itself. If it never goes away, an update was interrupted and a hidden .maintenance file is left in the site root. Delete that file once no update is running, then re-check the update that was in progress. WP24x7 can do it for you.

## Key facts

- For: owners whose site is stuck on the 'Briefly unavailable' message
- Usual fix: delete the hidden .maintenance file in the WordPress root
- Before you start: take a backup of files and database
- After: re-run the interrupted update and test key pages
- Emergency: reply within 15 minutes, any hour; rescue is pay-only-if-fixed
- Start: call the help desk or post a project

"Briefly unavailable for scheduled maintenance. Check back in a minute." appears while WordPress updates itself. **If it never goes away, an update was interrupted. Delete the hidden .maintenance file in your WordPress root folder, then re-check the update that was running.**

> **Quick answer**
Wait five minutes, connect by SFTP, show hidden files, delete `.maintenance` from the folder with `wp-config.php`, then finish any update that did not complete.

## What does this error mean?

When WordPress updates core, a plugin or a theme, it creates a small file called `.maintenance` in the site root. While it exists, visitors see the message. The file is deleted when the update finishes. If the update times out, the tab closes or the server restarts, the file stays behind.

## What are the common causes?

| Cause | How it happens |
|:--|:--|
| Closed tab or lost connection | You interrupted the update |
| Many plugins updated at once | A slow or limited server cannot finish |
| PHP time or memory limit | The update stops midway |
| A plugin fails during upgrade | It halts the process |
| Host restart or resource cap | The process is killed |

## How do I fix it?

Take a backup of files and database first; use a host snapshot if offered.

1. **Wait five minutes.** Large updates can take a while. Do not start another meanwhile.
2. **Connect by SFTP or your host's file manager** and open the folder with `wp-config.php` and `wp-content`.
3. **Show hidden files,** then find `.maintenance`.
4. **Delete `.maintenance`** and reload the site. Only the flag goes, not your content.
5. **Log in and check Dashboard, Updates.** Re-run any update that did not complete.
6. **Check what was updating.** If a plugin or theme misbehaves, rename its folder to deactivate it, then reinstall a clean copy.
7. **If core was updating,** choose Re-install version under Updates.
8. **Look for the file again** if the message returns; something may be re-triggering an update.

## Which method should I use to clear the flag?

### File manager or SFTP
Open the site root, enable hidden files and delete `.maintenance`. This works on any host and needs no command line.
### WP-CLI
With command-line access, run:

```
wp maintenance-mode status
wp maintenance-mode deactivate
```

Confirm no update is still running before you deactivate it.

## How do I tell which cause I have?

Ask what you were doing. If you updated one plugin and closed the tab, deleting `.maintenance` is the whole job. If an automatic update ran overnight, the host or a time limit may have stopped it. If the message returns after you remove the file, an auto-update that keeps failing is likely.

Check the file's modified time: hours or days old means stale, seconds old means an update is probably still running. Afterwards look at plugin and theme folders; one with unusually few files suggests an update that broke off midway.

_A site paused mid-update and brought back_

## What not to do

- Do not delete `.maintenance` while an update is truly running; that can corrupt it.
- Do not delete `wp-content` or core folders to start over.
- Do not use a maintenance-mode plugin to cover the problem; it will not clear the stuck file.

## A short scenario

An owner updates six plugins and her laptop sleeps halfway. She waits ten minutes, connects over SFTP and finds `.maintenance` dated twenty minutes earlier. She deletes it and the site returns, but two plugins still show an update and one shows an error. She re-runs the two, reinstalls the third and checks the contact form. The job was removing one flag and finishing what was interrupted.

## How do I check the site afterwards?

- Open the home page and a deep page in a private window.
- Check Dashboard, Updates for anything pending.
- Look in Plugins for "deactivated due to an error" notices.
- Test the contact form, checkout and login.
- Run a manual backup for a clean restore point.

## How do I prevent it?

Update one thing at a time, keep the tab open until it finishes, take a backup before bulk updates and use a staging copy for important sites. See the [maintenance checklist](/wordpress-maintenance-checklist).

## How do we fix it?

- **Emergency support** Reply within 15 minutes, with service credits; rescue is pay-only-if-fixed. [Emergency support](/wordpress-emergency-support)
- **Maintenance service** Updates run with backups and checks. [WordPress maintenance](/wordpress-maintenance-service)
- **Related fixes** If an update broke the site, see [plugin update broke my site](/fix/plugin-update-broke-my-site).

**Stuck and want it fixed now?**
A person reads it, today.
[Post a project](/post-project)
[Call the help desk](tel:+18043754450)

## Frequently asked questions

### How long should maintenance mode last?

Normally seconds to a minute or two while an update runs. If it is still showing after several minutes, an update was interrupted. Wait about five minutes before acting, and do not start another update meanwhile.

### Is it safe to delete the .maintenance file?

Yes, once you are sure no update is still running. The file is a temporary flag WordPress creates during updates, so deleting it removes the flag, not your content. Check its modified time first.

### I cannot see the .maintenance file.

It starts with a dot, so some file managers hide it. Turn on the option to show hidden files in your SFTP client or host file manager, and look in the folder that holds wp-config.php.

### Do I need to redo the update?

Often yes. An interrupted update can leave a plugin or theme half installed. Check Dashboard, Updates, re-run what did not complete and reinstall any plugin or theme that misbehaves.

### Why did it get stuck?

Common causes are closing the tab mid-update, updating many plugins at once on a limited server, a PHP time or memory limit, a plugin that fails during upgrade, or a host restart during the update.

### Can I clear it with WP-CLI?

Yes, with command-line access run wp maintenance-mode status and then wp maintenance-mode deactivate. The same rule applies: confirm no update is still running first.

### What if core was updating when it stuck?

Go to Dashboard, Updates and choose Re-install version. That replaces core files without touching wp-content or your database.

### The message came back after I deleted the file. Why?

Something is starting an update again, such as an auto-update that keeps failing, a scheduled task or a host resource limit. Update that item manually, or have an engineer handle it.

### Is a maintenance-mode plugin the same thing?

No. A plugin shows a branded 'coming soon' page on purpose and you control it in settings. The plain text message on a white background comes from WordPress itself and is controlled by the .maintenance file.

### What should I never do?

Do not delete .maintenance while an update is genuinely running, do not delete wp-content or core folders to start over, and do not use a maintenance plugin to cover the problem.

### How do I prevent it?

Update one thing at a time, keep the tab open until it finishes, take a backup before bulk updates and test important sites on a staging copy first. A care plan runs updates this way.

### When should I call for help?

If the site shows an error after deleting the file, the database upgrade screen fails, plugins are missing from admin or the site is custom-built and updates are risky. Emergency support replies within 15 minutes.
