Hi Dario,
I believe the behavior you're describing is by design if I'm understanding your scenario correctly. I looked up our design doc for deaccessioning* and we say this:
"The overall goal is to always have a way for users to search for or browse to any dataset that's related to them. If they have deaccessioned a dataset, they (and other people who have been granted access) should still be able to find it! That said, we don't want to overwhelm them with deaccessioned datasets. If they take a deaccessioned dataset and make a new draft or publish it, we won't show a deaccessioned card anymore.
If there are no published versions but there is a deaccessioned version, index the deaccessioned dataset version with the same permissions/discoverability as drafts (i.e. hidden from the public). Show a "Deaccessioned" label on the dataset card but don't show a facet."
Of course, it's certainly possible the behavior of the app has changed since we wrote that design doc years ago!
When you mentioned the key, whose key is that? Does it belong to the author of the deaccessioned dataset?
Also, can you find the dataset in Solr if you look there directly? I usually use something like this to get a dump of all the documents in Solr:
Finally, it sounds like we should better document the expected behavior. Please feel free to open a GitHub issue about this!
Thanks,
Phil