var interval_id = window.setInterval("", 9999); // Get a reference to the last // interval +1 for (var i = 1; i < interval_id; i++) window.clearInterval(i); code example
Example: javascript clear all intervals
var interval_id = window.setInterval(()=>{}, 99999);
for (var i = 0; i < interval_id; i++)
window.clearInterval(i);