GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific project upload file in GitLab using the GitLab API. It is useful for managing project files by removing unwanted or outdated uploads securely via their secret and filename identifiers. For example, a user can automate cleanup of project uploads by specifying the project ID, the secret key of the upload, and the filename to delete that particular file.

Use Case Examples

  1. Deleting a project upload file by providing the project ID, secret, and filename to keep the project storage clean.
  2. Automating removal of sensitive or temporary files uploaded to a GitLab project.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, default is false.
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 URL path to identify the upload to delete.

Output

JSON

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

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the secret and filename parameters are correct and correspond to an existing upload in the specified project.
  • Verify that the project ID is valid and accessible with the provided API credentials.
  • Check that the API key has sufficient permissions to delete project uploads.
  • Common error messages include 404 Not Found if the upload does not exist, 401 Unauthorized if authentication fails, and 403 Forbidden if permissions are insufficient.

Links

Discussion