Removing Buffs on Enemies with spell attack

Howdy, I'm trying to create a secondary effect to my fire spell that would sometimes remove buffs that the enemy applied to themselves. I've already got the randomness scripted out but I can't seem to find any way of removing buffs from the one hit/specific enemy. I've found an event that removes states from an enemy based on positioning but that's not quite what I'm looking for. Is there a way to do so with scripting or eventing? I have almost no knowledge of MV's scripting (It took me forever to make a simple Greater Than script) so if it must be done through scripting, could any provide me with an example?

Thank you all for your time.
Welcome! There should be no need to use plugins or scripting for this - in your skill entry in the database, add an Effect and on the State tab you can select a state to remove and the percent chance to remove it.

Is there some reason that doesn't work for you? If so, please explain how what you need is different and we can recommend plugins.
Firstly, thank you for responding, and secondly, what I am looking for is a way to remove any Buffs the enemy has applied to themselves as outlined in the Param section on the Effects tab for Skills, not States. I do appreciate your response and thank you again.
Sorry! I misread - you did use the correct terminology, it's just that you also mentioned states in the same post so I got confused.

So you'd check out Yanfly's Skill Core. Give your skill the notetag:
Code:
<Post-Damage Eval>
if (Math.random()<.75)
    target.removeBuff(X);
</Post-Damage Eval>

where the 75 is the percent chance of the removal happening, and X is the parameter you want to remove the buff for.

(they're in order on the class tab of your database, starting at 0 for Max HP)
Ah, alright, this should do the trick. The goal with my current project was to keep it as vanilla as possible as I'm still a newcomer but I'd use plugins when I hit an engine limitation and it seems I found one. Thank you very much for your help, you have no clue just how much this frustrated me.

Ciao!

Original thread: https://forums.rpgmakerweb.com/threads/removing-buffs-on-enemies-with-spell-attack.153710/