Some time ago, Mr. Salim Kanoun developed a perfect tool to solve your problem called ORTHANC TOOL, it works very well, it is very fast and it is special for eliminating and modifying entries in the Orthanc PACS, I recommend that you look for the download link in this same forum and I worked with that tool, I use it almost every day and it works great for me.
Greetings
William