# prompt_store: Fix deleted rules from the rules library being restored after restart \(\#47323\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e24c81994adfe7a63027f2453033a2571cde7e1d

Requested commit: e24c81994adfe7a63027f2453033a2571cde7e1d

Commit: e24c81994adfe7a63027f2453033a2571cde7e1d

Tree: 90f46903c729105380d8b823c4e5bf97d8fb258a

Author: Smit Barmase

Committer: GitHub

## Message

```
prompt_store: Fix deleted rules from the rules library being restored after restart (#47323)

Closes #40648

When deleting a prompt from the rules library, we now also delete it
from the legacy V1 database tables (if they exist). Previously, the V1
data would persist and get re-migrated on the next startup.

Release Notes:

- Fixed an issue where deleted rules from the rules library were getting
restored after a restart.
```

## Parents

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

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