delete_pipeline
Remove a specific pipeline from a GitLab project by providing the project ID and pipeline ID.
Instructions
Delete a pipeline
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or path | |
| pipeline_id | Yes | Pipeline ID |
Implementation Reference
- src/handlers/pipelines.ts:100-111 (handler)The core handler function that performs the DELETE request to the GitLab API to delete the specified pipeline and returns a success message or the 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 schema definition including name, description, and input schema for validating arguments (project_id and pipeline_id).{ 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-309 (registration)Registration in the tool dispatch switch statement that maps the 'delete_pipeline' tool name to the handler method call.case "delete_pipeline": return await this.pipelineHandlers.deletePipeline( args as unknown as PipelineActionParams
- src/server.ts:141-143 (registration)Tool list registration via allTools array, which includes the delete_pipeline tool from pipelines.ts, served in response to ListTools requests.return { tools: allTools, };