GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific container registry repository from a GitLab project. It is useful for managing container registries by removing unused or obsolete repositories to free up space and maintain organization. For example, a DevOps engineer might use this node to automate cleanup of container images in a CI/CD pipeline.

Use Case Examples

  1. Deleting a container registry repository by specifying the project ID and repository ID to clean up storage.
  2. Automating the removal of container images from a GitLab project registry as part of a deployment process.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Selects the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is relevant here.
Path Parameters Parameters to specify the project ID and repository ID to identify the container registry repository to delete.

Output

JSON

  • success - Indicates if the deletion was successful
  • message - Response message or error details from the API

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and repository ID are correct and exist in the GitLab instance.
  • Verify that the API token has sufficient permissions to delete container registry repositories.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the project or repository does not exist, and 403 Forbidden if the token lacks permissions.

Links

Discussion