GitLab API icon

GitLab API

Gitlab

Actions880

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 automate the cleanup of project uploads by specifying the project ID and the upload ID to delete the corresponding file.

Use Case Examples

  1. Automate deletion of obsolete project uploads in GitLab to maintain project storage hygiene.
  2. Remove specific files uploaded to a GitLab project via an automated workflow.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET but can be set to DELETE for this operation.
Path Parameters Parameters required in the URL path to identify the project and upload 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 upload.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and upload ID are correct and exist in GitLab to avoid 404 errors.
  • Verify that the API key has sufficient permissions to delete uploads in the specified project.
  • If skipping authentication, the request will likely fail unless the GitLab instance allows unauthenticated delete operations, which is uncommon.

Links

Discussion