Unable to delete added search to kibana dashboard

Using Kibana version 8.17.3 and added a search result to the one of my dashboard but currently want to remove the search from dashboard which is not possible there is a one pencil logo which goes to Discover to do some edit but I want to delete fully there is no remove

I just tried a 8.17.3 on Elastic cloud and I can see the delete option

Not sure how you ended up in this situation.
Where is it running?

I am using on-premises

It is running on Ubuntu Server 22.04

Could you do a full screenshot? So we can see the whole Kibana page?

Here is what I tried:

mkdir test ; cd test
curl -fsSL https://elastic.co/start-local | sh

Then I opened Kibana on http://localhost:5601/, imported the eCommerce sample dataset, created a new dashboard and added the saved search.

So I don't know what is happening on your side.
Note that it's 8.17.4.

Did you change some settings? Modify some roles?

No there is no settings change. I just login via elastic super user to be sure there is no access problem.
also create a new search and then new dashboard and add the near to dashboard but there is no option to delete
the only change is that I upgrade our cluster from version 8.10.4 to 8.17.3 2 weeks ago. can this be the problem?!

Was the searched view created with 8.10? Or is it a new search saved in 8.17?

It is a new search after upgrade

Could you try on another machine with a fresh new install?

I will try to setup a temp kibana and test with it

I did an upgrade to 8.18.0 and it is start working