GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific package from a project in GitLab using the GitLab API. It is useful for managing project packages by removing outdated or unwanted packages programmatically. For example, it can be used in CI/CD pipelines to clean up packages after deployment or in automation workflows to maintain project storage.

Use Case Examples

  1. Delete a package from a GitLab project by specifying the project ID and package ID to keep the project repository clean.
  2. Automate package removal in GitLab projects as part of a scheduled maintenance workflow.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API 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 DELETE for this operation.
Path Parameters Parameters required in the URL path to identify the project and package to delete.

Output

JSON

  • success - Indicates whether the package deletion was successful.
  • statusCode - HTTP status code returned by the API after the delete operation.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the project ID and package ID are correct and exist in GitLab to avoid 404 errors.
  • Check that the API token has sufficient permissions to delete packages in the project.
  • If authentication is skipped, the request may fail due to lack of authorization.
  • Verify the base URL is correct for the GitLab instance being accessed.

Links

Discussion