# How long will my mock server live?

**URL:** <https://community.postman.com/t/how-long-will-my-mock-server-live/36743>\
**Category:** Help Hub\
**Tags:** mockservers\
**Created:** [July 1, 2022, 1:28am UTC](https://community.postman.com/t/how-long-will-my-mock-server-live/36743 "2022-07-01T01:28:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidjmcclelland](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/davidjmcclelland/32/12493_2.png) [@davidjmcclelland](https://community.postman.com/u/davidjmcclelland)\
**Post date:** [July 1, 2022, 1:28am UTC](https://community.postman.com/t/how-long-will-my-mock-server-live/36743/1 "2022-07-01T01:28:04Z")

</div>

> **Archived topic — some details may be out of date.**  
> Mock servers built from saved collection examples are still supported. Postman now also has **code-based mocks** : JavaScript request handlers plus a `config.yaml`, stored as files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (`postman mock generate`) and run it (`postman mock run`). See [About mocks](https://learning.postman.com/docs/design-apis/mock-apis/mocks/overview) and [Create a mock](https://learning.postman.com/docs/design-apis/mock-apis/mocks/create-a-mock).  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) can build and run mocks for you.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

How long will my mock server live? I am used to hosting mocks on localhost - is there a policy/best practice I should know about?

I did the bootcamp tutorial and did not notice any details around this aspect.

I looked for an answer on SO and here - the closest thing is where a collection is deleted the mock associated with it goes away too - that makes sense, but not really my situation.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 3, 2025, 2:46pm UTC](https://community.postman.com/t/how-long-will-my-mock-server-live/36743/2 "2025-04-03T14:46:01Z")

</div>

Closed on April 3, 2025, 2:46pm UTC

We’re closing out older posts with no replies to keep the community organized. If you still need help with this issue, feel free to post a new topic.

Mock Servers will live unless they are deleted (through the UI or using the Postman API), the Collection is deleted or the users account is deleted.
