GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific upload from a project in GitLab using the GitLab API. It is useful for managing project files by removing unwanted or outdated uploads. For example, a user can delete an image or document previously uploaded to a GitLab project by specifying the project ID and the upload ID.

Use Case Examples

  1. Deleting an obsolete project upload to free up storage or remove sensitive files.
  2. Automating cleanup of project uploads as part of a CI/CD pipeline.

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.
Path Parameters Parameters to specify the project ID and upload ID to delete.

Output

JSON

  • success - Indicates if the deletion was successful.
  • statusCode - HTTP status code returned by the API.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and upload ID are correct and exist in the GitLab instance.
  • Verify that the API key has sufficient permissions to delete project uploads.
  • Check the base URL is correct if using a self-hosted GitLab instance.
  • Common error messages include 404 Not Found if the upload or project does not exist, and 403 Forbidden if the API key lacks delete permissions.

Links

Discussion