fix: #3072876 Pattern not removed when deleting the corresponding entity

Closes #3072876

Merge request reports

Loading