How to delete all json files within directory NodeJs

I need to delete only the json files within a directory (multiple levels). I’d hazard a guess that it’s possible with fs-unlinkSync(path) But I can’t find a solution without specifying the individual file name. I was hoping to solve it with the following… fs.unlinkSync(‘./desktop/directory/*.json’) but unfortunately the asterisk wouldn’t select all. Any suggestion please?