Getting rid of standard cast bar

So the only way i could figure out how to remove it was using a script.

/script CastingBarFrame:UnregisterAllEvents()

Is this allowed? im using a weakaura that has a cast bar. I dont want to get banned for doing it.

Shouldn’t the WA cast bar automatically do that without having to type a secondary script?

nah cause im using blizzard UI with the WA if i was using elv UI itt would go away.