You can use ChartChange() to remove all the indicators from a chart:
Framework.ChartChange({
mode: "active", // or "all", or "single" plus a .chartId value
command: "remove-all-indicators"
});