2

I have loads of Vertex AI pipeline runs. The GUI only lets me delete them one at a time. Is there a CLI command that lets me delete them in batch (ideally keeping the most recent)?

schoon
  • 2,858
  • 3
  • 46
  • 78
  • It seems deleting a pipeline using CLI is not feasible at this point.But you can achieve the same by using Vertex AI SDK for Python or Java as mentioned [here](https://cloud.google.com/vertex-ai/docs/samples/aiplatform-delete-training-pipeline-sample). For multiple pipelines you can use a loop and pass their IDs to the function. – kiran mathew Oct 25 '22 at 13:15
  • Has your issue been resolved? – kiran mathew Oct 28 '22 at 10:02
  • 1
    yes, thanks. If you want to create an answer i will accept it. – schoon Oct 28 '22 at 15:12
  • This is not the first time I complain about GCP and I think it explains why it is not the leader in cloud industry. – Z.Wei Jun 28 '23 at 20:17

1 Answers1

0

It seems deleting a pipeline using CLI is not feasible at this point. But you can achieve the same by using the Vertex AI SDK for Python or Java as mentioned here. For multiple pipelines, you can use a loop and pass their IDs to the function.

kiran mathew
  • 1,882
  • 1
  • 3
  • 10