Skip to content

Delete or archive a project

Before you begin

Role
Admin or higher to delete a project and Owner to archive or restore a project.

Delete a project you no longer need, or archive one to stop it answering without losing anything. Both are on the project’s Settings tab.

What happens Delete Archive
The project’s address Stops answering at once Answers 403
Mocks, scenarios, webhooks and settings Deleted permanently after 14 days Kept, and still editable
Request logs Removed within 30 days of the permanent deletion Kept for the plan’s retention
Counts against the plan’s limits No, from the moment it is deleted Yes
Undo Ask MockHub support within 14 days Restore project
Who can do it Admin or higher An Owner

Archiving suits a project you want to keep but not serve. It is also how you choose which projects keep answering when a workspace has more than its plan allows, such as after a downgrade.

  1. Open the project’s Settings tab.

  2. Under Delete this project, select Delete project.

  3. Read the dialog Delete this project?. It names the project and the address that will stop answering, and says whether support can recover it.

  4. Select Delete project.

When a project is deleted, every Owner of the workspace is emailed at once, except the Owner who deleted it. The email names the project, who deleted it, a member or a machine token, and the date until which support can recover it. In a workspace with one Owner, that Owner’s own deletions send no email.

Only MockHub support can recover a deleted project, within 14 days of its deletion. Write to support@mockhub.io from an Owner’s address if you can, naming the workspace and the project. Support recovers it as it was: its mocks, settings, request logs still within the plan’s retention, and its address.

Support cannot recover it while:

  • another project in the workspace uses its address; move or delete that one first;
  • the workspace has no room for it under the plan, for example because new projects or mocks took its place. The refusal names every limit it would exceed; archive or delete enough to make room, or upgrade.
  1. Open the project’s Settings tab.

  2. Under Archive this project, select Archive project.

  3. Select Archive project in the dialog Archive project?.

  1. Open the archived project’s Settings tab.

  2. Under Restore this project, select Restore project.

  3. Select Restore project in the dialog Restore project?.

After a deletion, MockHub shows Project deleted and returns to Projects. The project is gone from the workspace at once: its address stops answering, nobody can open it, its webhooks and alert rules stop, and it counts against none of the plan’s limits. MockHub keeps it for 14 days so that support can recover it. Then its mocks and their version history, its scenarios, chaos profiles, webhooks with their delivery records, alert rules and insights are deleted permanently, and its request logs within 30 days after that; see Your data in MockHub.

After archiving, MockHub shows Project archived. The list of projects and the project’s own heading tag it Archived, and its Mocks tab says that none of its mocks answer. Its address answers every request with 403:

{
"type": "https://mockhub.dev/problems/plan-limit",
"title": "Plan limit reached",
"status": 403,
"detail": "This project is archived or exceeds the active project allowance. Your definitions are preserved. Choose active projects or upgrade."
}

You can still open, edit and export everything in an archived project, but nothing in it runs: Try it and AI generation are refused, webhooks are not sent and alert rules are not checked.

After a restore, MockHub shows Project restored. The project answers again if it fits within the number of projects the plan lets answer, counted from the oldest. The list of projects tags it Active, or Outside active allowance when it does not fit; a project that does not fit carries the same tag beside its heading.

  • You cannot undo a deletion yourself, and support can only within 14 days. A CI environment, deleted by mockhub env down or when its time runs out, and a demo’s project are deleted permanently at once.
  • To keep your own copy of the project’s mocks, scenarios, chaos profiles, webhooks and settings, copy its configuration document first; see Edit a project’s configuration in the browser. Request logs, version history and delivery records are not in that document, and have no export.
  • Machine tokens restricted to a deleted project stop working, and come back with it if it is recovered.
  • Archiving does not free a place for a new project: an archived project still counts against the plan’s project limit.
  • Only Owners see Archive project and Restore project. Other members see the section’s explanation without the button.
  • When a project on a shared domain is deleted, its subdomain is held back from other workspaces for a while; see Hostnames, domains and protocols.

Report a problem with this page