I was able to do this using search and replace in the MacOS TextEdit app. One thing you have to be able to do for this to work is be able to include wildcards in the search field, which I believe most text editors can (not sure about Notepad on Windows).
First I created the following in Musescore and then exported the score to MusicXML:

For the test, I wanted to be able to remove all the notes on the line, which in this score represent tom hits, while leaving the snare and kick hits intact.
I opened up the MusicXML document and looked until I found this snippet:
<note default-x="101.58" default-y="-565.00">
<unpitched>
<display-step>D</display-step>
<display-octave>5</display-octave>
</unpitched>
<duration>2</duration>
<instrument id="P6-I46"/>
<voice>1</voice>
<type>quarter</type>
<stem>up</stem>
</note>
I determined that the above text was one instance of the tom hits I wanted to delete because the tom hit is displayed on the line that normally represents D in octave 5 when there is a treble clef sign at the beginning of the staff. This was corroborated by the fact that the other <note> entries were referred to C and F, which means they represented the kick and snare (on the F and C spaces of the treble clef, respectively).
So that means that searching for all such note definitions and replacing them with nothing would delete all of the tom hits. There is one catch: each note definition has a different x position in its definition. In this example we see it here:
<note default-x="101.58" default-y="-565.00">
In order to find all the notes in one search, you have to put a wildcard in for the x value in the quotes, like this:
<note default-x="<wildcard>" default-y="-565.00">
The wildcard text you use depends on the text editor you are using. In TextEdit on macOS, you don't actually replace that with text, but with a special "Any" object from the Pattern Insert dialog.
After searching for the entire note definition with the wildcard (and getting 36 hits) and replacing all of them with nothing (deleting them), I saved the MusicXML file and opened it in MuseScore again and it now looks like this:

So you'll need a text editor that can search and replace multiline text with wildcards in the search, and you'll have to go through the MusicXML document first to find the relevant <note> definition tag that specifies the cabasa.
To find it, you'll first need to find the <part> tag that is for the drum kit. It should have a part number corresponding to its position in the score. For instance, if it's the first one listed, it should be part 1. In my case, it was the sixth and last one, so it's part 6:
<part id="P6">
Another way to find the right part is look for a percussion clef definition, which looks like this:
<clef>
<sign>percussion</sign>
<line>2</line>
</clef>
Once you find the part, you have to figure out which note represents the cabasa. I suggest looking at the <display-step> tags for the note the cabasa note head would represent if it were on the treble clef instead of the percussion clef.
Also, save backups and double check you've removed the right notes before deleting the backups.