# Kibana - Monitoring Management - Delete Project Monitors

**URL:** <https://discuss.elastic.co/t/kibana-monitoring-management-delete-project-monitors/314631>\
**Category:** Synthetics\
**Tags:** docker\
**Created:** [September 18, 2022, 12:14am UTC](https://discuss.elastic.co/t/kibana-monitoring-management-delete-project-monitors/314631 "2022-09-18T00:14:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![adsandie](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@adsandie](https://discuss.elastic.co/u/adsandie)\
**Post date:** [September 18, 2022, 12:14am UTC](https://discuss.elastic.co/t/kibana-monitoring-management-delete-project-monitors/314631/1 "2022-09-18T00:14:26Z")

</div>

Hi, i tested docker elastic-agent-complete 8.4.1 and created a test uptime/synthetics project monitor, how do you delete it? It is saying that the monitor was added as an external project. to delete the monitor, remove it from the project and push the configuration again. Are there docs on how to do this? Thanks

 ![9-18-2022 8-13-04 AM](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0dc3d3a764b80894743469b4ecbb409fa3576686.png)

---

<div class="post-metadata">

**Author:** ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)\
**Post date:** [September 19, 2022, 12:37pm UTC](https://discuss.elastic.co/t/kibana-monitoring-management-delete-project-monitors/314631/2 "2022-09-19T12:37:37Z")

</div>

Hello @adsandie ,

I believe you used a push command from synthetics agent to add these monitors. In that case, you can just delete the source of monitors and push them again. It will delete those stale monitors. Currently we have a bug where you can't delete all the monitors. So make sure to leave one monitor in the source.

Regards

---

<div class="post-metadata">

**Author:** ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)\
**Post date:** [September 19, 2022, 12:42pm UTC](https://discuss.elastic.co/t/kibana-monitoring-management-delete-project-monitors/314631/3 "2022-09-19T12:42:27Z")

</div>

We have an open PR to fix this [feat: delete entire project via push command by vigneshshanmugam · Pull Request #598 · elastic/synthetics · GitHub](https://github.com/elastic/synthetics/pull/598)

---

<div class="post-metadata">

**Author:** ![vigneshshanmugam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vigneshshanmugam/32/40324_2.png) [@vigneshshanmugam](https://discuss.elastic.co/u/vigneshshanmugam)\
**Post date:** [September 19, 2022, 9:19pm UTC](https://discuss.elastic.co/t/kibana-monitoring-management-delete-project-monitors/314631/4 "2022-09-19T21:19:52Z")

</div>

Hi @adsandie,

We have a new Synthetics agent release - [Release v1.0.0-beta.35 · elastic/synthetics · GitHub](https://github.com/elastic/synthetics/releases/tag/v1.0.0-beta.35) which would let you delete an entire project if there are no monitors found.

1. To delete a single monitor - Delete the journey from local journey folder and run the `push` command

```auto
SYNTHETICS_API_KEY="key" npx @elastic/synthetics push

```

1. To delete an entire project, Delete all the journey files (\*.journey.(ts|js)) and run the push command.

Please do let us know if you need more help.

Thanks,  
Vignesh

---

<div class="post-metadata">

**Author:** ![adsandie](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@adsandie](https://discuss.elastic.co/u/adsandie)\
**Post date:** [September 19, 2022, 10:41pm UTC](https://discuss.elastic.co/t/kibana-monitoring-management-delete-project-monitors/314631/5 "2022-09-19T22:41:17Z")

</div>

Hi.

Yes i used a push command but unfortunately, i deleted the entire directory of the project. upon recreating the project, it tried to duplicate the monitor id/name as shown from the screenshot. When i deleted the javascript file (journey), it is saying no monitor found. I'll try the new Synthetics agent v1.0.0.beta.35 from [vigneshshanmugam] post.

Thank you.

---

<div class="post-metadata">

**Author:** ![adsandie](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@adsandie](https://discuss.elastic.co/u/adsandie)\
**Post date:** [September 20, 2022, 1:36am UTC](https://discuss.elastic.co/t/kibana-monitoring-management-delete-project-monitors/314631/6 "2022-09-20T01:36:20Z")

</div>

I was able to delete some of the monitors using - [Release v1.0.0-beta.35](https://github.com/elastic/synthetics/releases/tag/v1.0.0-beta.35) but those that are created/pushed using whitespace/blank fields for the "project id" or "journey name" are hard to delete.

---

<div class="post-metadata">

**Author:** ![vigneshshanmugam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vigneshshanmugam/32/40324_2.png) [@vigneshshanmugam](https://discuss.elastic.co/u/vigneshshanmugam)\
**Post date:** [September 20, 2022, 5:03pm UTC](https://discuss.elastic.co/t/kibana-monitoring-management-delete-project-monitors/314631/7 "2022-09-20T17:03:15Z")

</div>

Thanks for the feedback. Yeah unfortunately, you would need to at-least remember the `projectId` so that when you push the next time, the outdated monitors/journeys would be marked as stale and deleted.

We are also planning to make the `project` as the first class entity going forward, so you could list/delete/ an entire project from the CLI which would provide a better experience for the above scenario you mentioned.

Thanks,  
Vignesh

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 14, 2022, 5:03pm UTC](https://discuss.elastic.co/t/kibana-monitoring-management-delete-project-monitors/314631/8 "2022-10-14T17:03:25Z")

</div>

This topic was automatically closed 24 days after the last reply. New replies are no longer allowed.
