可以参考这篇文档 https://gitee.com/dolphindb/DolphinDBModules/tree/master/ops#38-unsubscribeall-
语法:unsubscribeAll()
详情:取消当前节点上的所有订阅。
例子
share streamTable(10:0, `id`val, [INT, INT]) as st t = table(10:0, `id`val, [INT, INT]) subscribeTable(tableName=`st, actionName=`sub_st, handler=append!{t}) undef(st, SHARED) #error All subscriptions to the shared stream table [st] must be cancelled before it can be undefined. unsubscribeAll() undef(st, SHARED)