# Add safety checks for file/directory removals operations

**URL:** <https://forum.cursor.com/t/add-safety-checks-for-file-directory-removals-operations/45960>\
**Category:** Feature Requests\
**Created:** [January 29, 2025, 3:41pm UTC](https://forum.cursor.com/t/add-safety-checks-for-file-directory-removals-operations/45960 "2025-01-29T15:41:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Idontknow](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@Idontknow](https://forum.cursor.com/u/Idontknow)\
**Post date:** [January 29, 2025, 3:41pm UTC](https://forum.cursor.com/t/add-safety-checks-for-file-directory-removals-operations/45960/1 "2025-01-29T15:41:49Z")

</div>

Can we please have a safety check/user confirmation pop up button for any operations that involve deleting files/directories in agent mode? I’ve had a lot of instances where the agent automatically deletes folders in a sequence of operations

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [February 1, 2025, 5:02pm UTC](https://forum.cursor.com/t/add-safety-checks-for-file-directory-removals-operations/45960/2 "2025-02-01T17:02:11Z")

</div>

If you have Yolo mode enabled you should be able to configure it to not delete any files or folders without confirmation.

With the Yolo mode disabled, you should always confirm any command that the agent wants to run.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/127254_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 18, 2026, 10:26am UTC](https://forum.cursor.com/t/add-safety-checks-for-file-directory-removals-operations/45960/3 "2026-06-18T10:26:25Z")

</div>

Closed on June 18, 2026, 10:26am UTC


