Unused and Deleted Stages

Unused and Deleted Stages

Hello,

I just started a new company and started organizing the pipeline. I have one challenge left,  deleted and unused stages still appear in the All Pipeline tab, and it affects the report and charts in the dashboard. How can I delete or hide it?