If you want disable Yoast SEO schema JSON-LD completely? Use the following example code your functions.php file and add the below code just before the PHP tag is closed at the bottom of the page.
* Disable Yoast SEO Schema JSON-LD completely
$data = array();
add_filter('wpseo_json_ld_output', 'fwm_remove_yoast_json', 10, 1);
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.