If anyone is interested, here is the solution:
`
add_filter( ‘wpseo_json_ld_output’, ‘yoast_seo_json_remove_partial’ );
function yoast_seo_json_remove_partial() {
if ( is_single ( 123456 ) ) {
return false;
}
/* Use a second if statement here when needed */
}