GitLab API

GitlabTool

Actions1000

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. For example, a user can delete a package by specifying the project ID or URL-encoded path and the package ID to clean up project dependencies or storage.

Use Case Examples

  1. Deleting a package from a project by providing the project ID and package ID to free up space or remove deprecated packages.
  2. Automating package cleanup in CI/CD pipelines by deleting specific packages after deployment.

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 GET but can be set to DELETE for this operation.
Path Parameters Parameters required in the URL path to identify the project and package to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response
  • body - Response body from the GitLab API after attempting to delete the package

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID and package ID are correct and exist in the GitLab instance to avoid 404 Not Found errors.
  • Check authentication credentials if receiving 401 Unauthorized errors.
  • Verify that the user has sufficient permissions to delete packages in the specified project to avoid 403 Forbidden errors.

Links

Discussion