# Automatically delete task

**URL:** <https://forums.pega.com/t/automatically-delete-task/670>\
**Category:** General\
**Tags:** 8-4-2, case-management\
**Created:** [October 5, 2020, 3:55pm UTC](https://forums.pega.com/t/automatically-delete-task/670 "2020-10-05T15:55:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Reawaruw1](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/bob_reawaruw1/32/23423_2.png) [@Bob\_Reawaruw1](https://forums.pega.com/u/Bob_Reawaruw1)\
**Post date:** [October 5, 2020, 3:55pm UTC](https://forums.pega.com/t/automatically-delete-task/670/1 "2020-10-05T15:55:29Z")

</div>

Requirement:

Delete open tasks which are idle, these tasks are were initiated by optional processes available via de actions menu.

---

<div class="post-metadata">

**Author:** ![Bob\_Reawaruw1](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/bob_reawaruw1/32/23423_2.png) [@Bob\_Reawaruw1](https://forums.pega.com/u/Bob_Reawaruw1)\
**Post date:** [October 5, 2020, 4:00pm UTC](https://forums.pega.com/t/automatically-delete-task/670/2 "2020-10-05T16:00:26Z")

</div>

- In the optional process flow, add a connector and an end-shape to the task.

- Add a empty flow action to the connector, ex. “EndTask”.

- Add an SLA to the task.

- Goal/deadline = ex. 8 hours.

- Action after meeting the goal = Advance flow (“EndTask”)
