I'm working on a project that uses GCP/GAE. I have a queue of tasks that is executed. In some cases I need to purge the queue contents. I have searched for API docs on how to do this, but have only found legacy outdated docs and they're only for python. I need a code example of how to purge a task queue by name using Node.js. I also did not find anything on Stackoverflow. I already have an instance of CloudTasksClient() that is used to listTasks() and it works just fine.
Is there a method for the client that will purgeQueue(<queueName>)? Does anybody know how to do this?