Override/remove an error from console?

I get this error about object not being destroyed in the editor because it can be done only in game blabla and it's really annoying. Any way to remove it?

Destroy may not be called from edit mode! Use DestroyImmediate instead. Also think twice if you really want to destroy something in edit mode. Since this will destroy objects permanently.

The error if you're wondering.

I don't want to destroy the object in editor anyway, so go away.

Sorry, but if you execute code in edit mode YOU have to be sure what you want to execute and what you don't want. I guess you want the script to delete something but only when you're in playmode. So just check that with Application.isPlaying:

[...]
if (Application.isPlaying)
{
    Destroy(someObject)
}
[...]