# I can't Stop a Running Task

**URL:** <https://community.sonatype.com/t/i-cant-stop-a-running-task/5852>\
**Category:** Sonatype Nexus Repository\
**Created:** [February 9, 2021, 3:20pm UTC](https://community.sonatype.com/t/i-cant-stop-a-running-task/5852 "2021-02-09T15:20:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aminembarekborjcedria](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@aminembarekborjcedria](https://community.sonatype.com/u/aminembarekborjcedria)\
**Post date:** [February 9, 2021, 3:20pm UTC](https://community.sonatype.com/t/i-cant-stop-a-running-task/5852/1 "2021-02-09T15:20:03Z")

</div>

Hello,

I’m working on “Sonatype Nexus Repository ManagerOSS 3.20.1-01”.  
I had already create a task (Execute script) with Infinite loop by mistake and I can’t stop it or delete it.

It display a popup : Task stopped: Clean Up Task Name (Admin - Execute script)  
but it still running and all the news tasks I can’t stop it or delete it.

Is there any way to force the stop or the delete, pls.

And Thank you in advance.

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [February 9, 2021, 3:22pm UTC](https://community.sonatype.com/t/i-cant-stop-a-running-task/5852/2 "2021-02-09T15:22:56Z")

</div>

Unless the task you wrote checks for cancellation that won’t work.

You could try restarting Nexus, depending on the schedule for your task though it may start again so you might want to remove the code from the task.

---

<div class="post-metadata">

**Author:** ![aminembarekborjcedria](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@aminembarekborjcedria](https://community.sonatype.com/u/aminembarekborjcedria)\
**Post date:** [February 9, 2021, 3:52pm UTC](https://community.sonatype.com/t/i-cant-stop-a-running-task/5852/4 "2021-02-09T15:52:38Z")

</div>

Is there any other way to do it without restatrting the NEXUS @mpiggott ?
