GitLab API

GitlabTool

Actions905

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. Automate deletion of project upload files in GitLab to maintain storage hygiene.
  2. Remove sensitive or outdated files from a GitLab project programmatically.

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 URL path to identify the upload to delete, including project ID, secret, and filename.

Output

JSON

  • success - Indicates if the deletion was successful.
  • statusCode - HTTP status code returned by the API.
  • message - Response message or error details from the API.

Dependencies

  • Requires GitLab API key credential for authentication.

Troubleshooting

  • Ensure the project ID, secret, and filename are correctly specified; incorrect values will cause the deletion to fail.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials are set properly.
  • The API may return errors if the file does not exist or has already been deleted.

Links

Discussion