可以使用 Node 以编程方式删除 Google Cloud Tasks 吗?

Can Google Cloud Tasks be programmatically deleted using Node?

根据 documentation about deleting tasks and queues,这可以在 Go 中完成,Java、Python 和 PHP。节点已禁用。

有没有办法使用 Node 做到这一点?我已经在使用节点创建任务了。

是的,可以做到。您在问题中提供的 link 不是您要查看的内容。它指的是 App Engine 任务队列,它不同于 Cloud Tasks。

Cloud Tasks 的 nodejs API 文档开始 here. You can delete an existing task with deleteTask

我写了一篇 blog,详细讨论了为 Firesore 文档实现 TTL 的任务的创建和删除。如果需要,它使用 deleteTask 取消任务。