perepm
perepm

Reputation: 990

Can Google Cloud Tasks be programmatically deleted using Node?

According to the documentation about deleting tasks and queues, this can be done in Go, Java, Python and PHP. Node is disabled.

Is there a way to do this using Node? I'm already creating Tasks using node.

Upvotes: 0

Views: 1128

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317497

Yes, it can be done. The link you provided in your question is not what you want to look at. It's referring to App Engine task queues, which is different than Cloud Tasks.

The nodejs API documentation for Cloud Tasks starts here. You can delete an existing task with deleteTask.

I've written a blog that discusses in detail the creation and deletion of tasks that implement a TTL for a Firesore document. It uses deleteTask to cancel the task if needed.

Upvotes: 5

Related Questions