GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific container registry repository within a GitLab project. It is useful for managing container images stored in GitLab's container registry by removing repositories that are no longer needed or to clean up storage.

Use Case Examples

  1. Deleting a container registry repository by specifying the project ID and repository ID to free up space.
  2. Automating cleanup of old container images in a CI/CD pipeline by deleting specific registry repositories.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is used for this operation.
Path Parameters Parameters required in the request path to identify the project and repository to delete.

Output

JSON

  • statusCode - HTTP response status code indicating the result of the delete operation.
  • body - Response body from the GitLab API after attempting to delete the repository.

Dependencies

  • GitLab API key credential

Troubleshooting

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

Links

Discussion