Thanks for responding esmi, but question… is this a frontend function? I don’t want to remove the shortcode from the theme, only a specific post layout. Basically I want to be able to add the shortcode to a post within the edit screen, but stop it from being displayed on the published pages.
Sounds foolish, but its a little bit easier for the novice WP user to upload images to a post as a full gallery, vs creating the gallery then deleting the shortcode or creating the gallery via the media page.