delete_pipeline
Remove a specific pipeline from a GitLab project using the project ID and pipeline ID to clean up or cancel unwanted pipeline executions.
Instructions
Delete a pipeline
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipeline_id | Yes | Pipeline ID | |
| project_id | Yes | Project ID or path |
Implementation Reference
- src/handlers/pipelines.ts:100-111 (handler)The core handler function that executes the delete_pipeline tool by calling the GitLab DELETE API endpoint for pipelines and returning success or response data.async deletePipeline(args: PipelineActionParams) { const response = await this.client.delete(`/projects/${encodeURIComponent(args.project_id)}/pipelines/${args.pipeline_id}`); return { content: [ { type: 'text', text: response.status === 204 ? 'Pipeline deleted successfully' : JSON.stringify(response.data, null, 2), }, ], }; }
- src/tools/pipelines.ts:158-175 (schema)Tool definition including name, description, and input schema for the delete_pipeline tool, exported as part of pipelineTools array.{ name: 'delete_pipeline', description: 'Delete a pipeline', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID or path', }, pipeline_id: { type: 'number', description: 'Pipeline ID', }, }, required: ['project_id', 'pipeline_id'], }, },
- src/server.ts:307-310 (registration)Switch case in tool call handler that routes 'delete_pipeline' calls to the PipelineHandlers.deletePipeline method.case "delete_pipeline": return await this.pipelineHandlers.deletePipeline( args as unknown as PipelineActionParams );