How to remove user's debuff and all enemies' buff?

I use Yanfly's State Categories, after finding script, I guess this is the key.

Code:
this.removeCategory[String(Buff).toUpperCase().trim()] = 'ALL';
obj.removeCategory[String(Debuff).toUpperCase().trim()] = 'ALL';

But, error report says "Buff" is undefined, I don't know how to fix the error, please tell me!
If I was you, I would use this :

http://yanfly.moe/2017/12/01/yep-159-lunatic-pack-action-beginning-and-end-effects-rpg-maker-mv/

Because I'm kind of lazy 🙂 You can read in the plugin description how does it work

<timing Action: Add x Buff>

<timing Action: Add x Buff, y Turns>

<timing Action: Add x Debuff>

<timing Action: Add x Debuff, y Turns>
If I was you, I would use this :
......
<timing Action: Add x Debuff, y Turns>

I only use states...... should I change all 441 states to buff?:VXA4:
Also work with State 🙂
<timing Action: Remove State x>
<timing Action: Add State x>
*bump*
Is there any other ways?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-remove-users-debuff-and-all-enemies-buff.91169/