# settings_ui: Add confirmation prompt before deleting a skill \(\#61044\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4e36451a8c01702234fc14ad87ebc56d3e5037cb)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4e36451a8c01702234fc14ad87ebc56d3e5037cb

Requested commit: 4e36451a8c01702234fc14ad87ebc56d3e5037cb

Commit: 4e36451a8c01702234fc14ad87ebc56d3e5037cb

Tree: bcd1ef7f76326765e22d10632570bf865cc6982f

Author: Smit Barmase

Committer: GitHub

## Message

```
settings_ui: Add confirmation prompt before deleting a skill (#61044)

Previously, clicking the trash icon on the Skills settings page
immediately moved the skill's directory to the trash.

This PR now shows a confirmation prompt explains what will be deleted
and where it's shared before anything is moved to the trash. This is
because that directory is shared with other agent tools
(`~/.agents/skills` or `{project}/.agents/skills`), deleting it silently
affects more than just Zed, I think it's better to explain that.

<img height="250" alt="global-skill-delete"
src="https://github.com/user-attachments/assets/d49ecc92-c195-42d2-924e-6fb9d024d2ec"
/>
<img height="250" alt="project-skill-delete"
src="https://github.com/user-attachments/assets/4b84af28-b8fd-4635-afe5-c1cd73d09e1a"
/>

Release Notes:

- Added a confirmation prompt when deleting skills from the settings
window.
```

## Parents

- [63692b8b4724357fa63d6318b45f3c3fee6f672a](https://git.cafe/gitcafe/zed/commit/63692b8b4724357fa63d6318b45f3c3fee6f672a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4e36451a8c01702234fc14ad87ebc56d3e5037cb?format=markdown)
