GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a project in GitLab by its ID or URL-encoded path. It is useful for automating project management tasks such as removing obsolete or completed projects from a GitLab instance. For example, it can be used in workflows that clean up projects after a certain event or condition is met.

Use Case Examples

  1. Deleting a project by its ID to free up resources.
  2. Automating project lifecycle management by removing projects no longer needed.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but set to DELETE for this operation.
Path Parameters The path parameters for the request, specifically the project ID or URL-encoded path to identify the project to delete.

Output

JSON

  • id - The ID or URL-encoded path of the deleted project

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct and exists in the GitLab instance to avoid 404 errors.
  • Verify that the authentication credentials have sufficient permissions to delete projects to prevent authorization errors.
  • Check the base URL is correctly set to the GitLab instance you intend to manage.

Links

Discussion