I'm new with this forum, and with macros/addons but, what if you use UnitBuff to check if it has a buff active and do it?
Something like that:
/run for i=1,40 do local name,_,_,_,_,_,_,_,_=UnitBuff("player",i);if name and name == "Levitate" then CancelUnitBuff("player", i) end end
|