GitLab API icon

GitLab API

Gitlab

Actions880

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, a user can automate the cleanup of project packages by specifying the project ID and package ID to delete.

Use Case Examples

  1. Automate deletion of a package from a GitLab project by providing the project ID and package ID.
  2. Remove obsolete packages from multiple projects in GitLab through an automated workflow.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication The authentication method used for the request, 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, default is GET but DELETE is used 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 token or credentials

Troubleshooting

  • Ensure the project ID and package ID are correct and exist in GitLab to avoid 404 errors.
  • Check that the authentication credentials are valid and have sufficient permissions to delete packages.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests for package deletion, which is uncommon.

Links

Discussion