GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific container registry repository from a GitLab project. It is useful for managing and cleaning up container images stored in GitLab's container registry by removing repositories that are no longer needed. For example, a DevOps engineer can automate the deletion of outdated container images to free up storage space and maintain a clean registry.

Use Case Examples

  1. Deleting a container registry repository by specifying the project ID and repository ID to remove unused container images.
  2. Automating cleanup of container registries in CI/CD pipelines to ensure only relevant images are retained.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method 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 repository to delete.

Output

JSON

  • success - Indicates whether the deletion was successful.
  • statusCode - HTTP status code returned by the API.
  • message - Additional message or error information from the API response.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and repository ID are correct and exist in the GitLab instance.
  • Verify that the API key has sufficient permissions to delete container registry repositories.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error: 404 Not Found - The specified project or repository does not exist.
  • Common error: 403 Forbidden - The API key does not have permission to delete the repository.

Links

Discussion