Delete your old GitLab CI pipelines

Unsplash: JJ Ying



  • list project pipelines
  • get a single pipeline
  • get variables of a pipeline
  • delete a pipeline

Call the GitLab API

curl --header "PRIVATE-TOKEN: <your_access_token>" ""
Axios configuration

List pipelines

Axios — Get the list of pipelines

Delete a pipeline

Axios — Delete a pipeline

Delete all pipelines

Axios — Delete pipelines

Wrap Up & Bonus

Final code

Node.js & React Native Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to choose the best Django development company to outsourcing?

What is the $this keyword and how to use it in PHP

How To Get Places with Using HMS Site Kit

Better Decisions (By Forecasting Cycle Time as a Team)

How to setup WordPress on AWS

Mist NFT — Gameplay Footage and Weekly Recap #7

Reasons to choose Python over PHP

Developing the Backend to your IoT Project using AWS — Part I(5 Steps)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nicolas Dommanget-Muller

Nicolas Dommanget-Muller

Node.js & React Native Developer

More from Medium

How to Redirect from Non-WWW to WWW with Traefik

Setting up local development environment with Rancher Desktop , WSL Ubuntu and VSCode

How To Host Your Own Docker Registry

Invoke AWS Lambda Function programmatically using .NET, C# and AWS Lambda SDK