2022-10-17 17:46:38 +00:00
---
stage: Create
group: Code Review
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
---
2022-10-19 14:32:40 +00:00
<!--
2022-10-17 17:46:38 +00:00
This documentation is auto generated by a script.
2023-02-07 08:22:45 +00:00
Please do not edit this file directly. Run `make gen-docs` instead.
2022-10-19 14:32:40 +00:00
-->
2022-10-17 17:46:38 +00:00
2022-10-21 14:38:48 +00:00
# `glab ci delete`
2022-10-17 17:46:38 +00:00
2023-12-06 16:26:11 +00:00
Delete CI/CD pipelines
2022-10-17 17:46:38 +00:00
```plaintext
glab ci delete < id > [flags]
```
## Examples
```plaintext
2022-10-21 14:38:48 +00:00
glab ci delete 34
glab ci delete 12,34,2
2023-12-06 16:26:11 +00:00
glab ci delete --source=api
2023-04-27 01:32:20 +00:00
glab ci delete --status=failed
2023-12-06 16:26:11 +00:00
glab ci delete --older-than 24h
glab ci delete --older-than 24h --status=failed
2022-10-17 17:46:38 +00:00
```
2022-10-21 14:38:48 +00:00
## Options
2022-10-17 17:46:38 +00:00
```plaintext
2023-12-06 16:26:11 +00:00
--dry-run Simulate process, but do not delete anything
--older-than duration Filter pipelines older than the given duration. Valid units: {h|m|s|ms|us|ns}
--page int Page number
--paginate Make additional HTTP requests to fetch all pages of projects before cloning. Respects --per-page
--per-page int Number of items to list per page
--source string Filter pipelines by source: {api|chat|external|external_pull_request_event|merge_request_event|ondemand_dast_scan|ondemand_dast_validation|parent_pipeline|pipeline|push|schedule|security_orchestration_policy|trigger|web|webide}
-s, --status string Delete pipelines by status: {running|pending|success|failed|canceled|skipped|created|manual}
2022-10-17 17:46:38 +00:00
```
2022-10-21 14:38:48 +00:00
## Options inherited from parent commands
2022-10-17 17:46:38 +00:00
```plaintext
--help Show help for command
-R, --repo OWNER/REPO Select another repository using the OWNER/REPO or `GROUP/NAMESPACE/REPO` format or full URL or git URL
```