Remove action from shortcode

I do not want to removing and re-adding shortcode, because there is huge function beyond it.

This might not answer your question, but the size of the shortcode function itself does not make much of a difference for removing and re-adding. Short or long functions take the same time here.

So don’t hinder yourself removing the shortcode (remove_shortcode) because of the size of the function (huge), just remove it if you want to remove it, regardless how big it is:

remove_shortcode('test');