# Delete and restore a project

Source: https://modulify.ai/docs/projects/delete-and-restore

What deleting removes, who is allowed to do it, and how to bring a deleted project back.

Deleting a project takes its site offline and moves the project to **Recently deleted**, where you can restore it for 30 days. To take a project off your lists while its site keeps running, [archive it](https://modulify.ai/docs/projects/archive) instead.

## Who can delete

You can delete a project if you created it, or if you hold the *Delete projects* permission in the workspace. Otherwise **Delete** is disabled in the menu with the tooltip *You do not have permission to delete this project.* When your [role on the site](https://modulify.ai/docs/editor/settings#what-a-content-editor-or-viewer-sees) is Content editor or Viewer, it is disabled with *Your role on this site does not include this.* instead.

Locked projects cannot be deleted. A locked card has no menu at all.

## Delete one project

Open the project's card menu and choose **Delete**, at the bottom in red. This works the same on an archived project, from its card on the Archive page.

A confirmation appears titled *Delete "<project name>"?* Its description reads *It moves this project to Recently deleted, where you can restore it. Its site goes offline right away.* When a [legacy project](https://modulify.ai/docs/projects/projects-overview#legacy-projects) has pages or components, the description names them too.

In the mobile app, **Delete** is the last item of the project menu, which opens from the three dots button on a card. The same confirmation slides up from the bottom of the screen, and a project you cannot delete shows *You do not have permission to delete this project* under the disabled item.

You can also delete from inside the project. The project menu, opened by clicking the project name in the editor, ends with the same **Delete**, and the project's [Settings](https://modulify.ai/docs/editor/settings) tab has a **Delete project** row described as *Delete this project and take its site offline. You can restore it from Recently deleted in your dashboard.* with a red **Delete project** button. Both follow the rules in [Who can delete](https://modulify.ai/docs/projects/delete-and-restore#who-can-delete) and are disabled with the same tooltips. Confirming either one sends you back to the dashboard.

## Delete several at once

Tick the checkboxes on several cards and choose **Delete** on the selection bar. The confirmation reads *Delete N projects?* and says they move to Recently deleted, where you can restore them. Any of them you are not allowed to delete are skipped, and when that is every one of them, the delete is refused with `You are not authorized to delete these projects!`

In the mobile app, press and hold a card to select it, tap the others you want, then tap **Actions** at the bottom of the screen and choose **Delete**. The same confirmation slides up from the bottom of the screen, see [On the mobile app](https://modulify.ai/docs/projects/projects-overview#on-the-mobile-app).

## What happens

The project disappears from the dashboard immediately and a toast confirms it. Behind that:

- Its preview and its live site stop running, so a published address stops serving the site
- A publish that is still running is cancelled
- Its database and its files stay stored, but nothing can read them: the database refuses every query, and the links to its public files stop answering
- Its [custom domains](https://modulify.ai/docs/publish/custom-domains) are freed, so another site can connect them. In the same workspace, a domain that was verified needs no new [ownership record](https://modulify.ai/docs/publish/custom-domains#the-ownership-record) when it is connected again within 30 days
- The workspace's project count drops, freeing a slot on your plan
- Any scheduled jobs the site had are switched off, marked *Disabled because this project was deleted.*
- Its deploy hook URLs stop working and answer `404`, so nothing calling them can start a build
- It stops sending email, and mail sent to its addresses is no longer forwarded, so point the MX record of any [email domain](https://modulify.ai/docs/built-in/emails#receive-mail-at-your-domain) it received for back at your mailboxes
- Any chat messages still queued for it are dropped
- If the folder it was in is on screen, that folder's count drops too

If the workspace had a locked site because you were over your plan's limit, deleting an unlocked one releases the slot and the most recently updated locked site unlocks straight away.

## Restore a deleted project

**Recently deleted** sits under **Projects** in the sidebar, after your folders. It lists every project deleted in the last 30 days in the workspace you are in that you may bring back: the ones you created, or every one when your role has the *Delete projects* permission. More load as you scroll, like on your projects page. Each one is a card like there, with the preview of its site, its name and when it was deleted.

Deleted projects stay there for 30 days before they are permanently deleted. The badge on each card counts down the days left until it reads `1 day left`, and a project deleted longer ago no longer shows up.

Click **Restore** on a card. The project goes back to your projects, into its folder when that folder still exists, and a project that was archived comes back to the Archive. A toast reads *Project restored*.

A restored project comes back as it was, with these differences:

- Its site stays offline until you [publish](https://modulify.ai/docs/publish/publish-a-site) it again
- Its database answers again and the links to its public files work again
- Its custom domains come back, except any that another site connected while it was deleted
- Scheduled jobs that the delete switched off are switched back on
- It takes a slot on your plan again. When none is free, restoring is refused with `Your plan has no free slot for this project. Free one or upgrade, then restore it again!`
- Chat messages that were waiting in its queue stay dropped, and an [MCP token](https://modulify.ai/docs/mcp/tokens-and-scopes#when-a-site-or-workspace-goes-away) that lost it does not get it back

A site whose code was moved to your own GitHub cannot come back once another site uses its repository. Restoring it is then refused with `Another site now uses the GitHub repository this project used, so it cannot be restored!`

In the Modulify app for iPhone and Android, the trash button next to **+** at the top of the **Projects** tab opens **Recently deleted**. It shows the same line about how long projects stay there, the same cards with their countdown badge and when each was deleted, and **Restore** on every card, with the same *Project restored* toast and refusals as the web. Pull down to refresh, and more load as you scroll.

**Archive** is the way to clear a project off your lists without taking its site offline. An archived project keeps its site and its content, and **Unarchive** brings it back. It still counts toward your plan, so archiving does not free a slot the way deleting does. See [Archive projects](https://modulify.ai/docs/projects/archive).

**Duplicate** in the card menu is the cheap way to keep a full copy, including its database content and uploaded files. It does count as a site against your plan, and it can be refused, for example while the database is being backed up or copied, as [Copying a database](https://modulify.ai/docs/projects/sharing-and-cloning#copying-a-database) describes.

## Deleting a folder is not deleting projects

**Delete** on a folder removes only the folder. Every project inside it returns to the main projects list, and the confirmation says so: *This folder contains N projects. They will be moved to your main projects list.*

See [Folders](https://modulify.ai/docs/projects/folders) for the rest of the folder actions.

## Next

- [Sharing and cloning](https://modulify.ai/docs/projects/sharing-and-cloning) covers duplicating a project before you remove the original.
- [Archive projects](https://modulify.ai/docs/projects/archive) puts a project out of sight while keeping it.
- [Transfer a project](https://modulify.ai/docs/projects/transfer-a-project) is the right move when someone else should keep it.