destroy object inside class method

i have a class with several methods…and inside one of them i need to destroy a bunch of GameObjects that I find through findGameObjectswithTag(“something”).

but when i try to use the “Destroy()” function unity says “unknown identifier”…

is there any better way to do this?

GameObject.Destroy(objectYouWantToDestroy);

It’s a static method, not an instance method of the game-object class.