GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific group upload file in GitLab by using the group's ID, a secret key, and the filename. It is useful for managing and cleaning up uploaded files within a GitLab group, especially when you need to remove outdated or unwanted uploads programmatically.

Use Case Examples

  1. Deleting a file uploaded to a GitLab group by specifying the group ID, the secret key associated with the upload, and the filename to remove it from the group's storage.
  2. Automating cleanup of group uploads in GitLab to maintain storage hygiene and security.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication The authentication method used for the request, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The 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 request path to identify the specific upload to delete, including secret (the 32-character secret of the group upload), filename (the name of the file), and id (the group ID).

Output

JSON

  • statusCode - HTTP status code of the delete operation response
  • responseBody - Body of the response returned from the GitLab API after attempting to delete the upload

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the secret, filename, and group ID path parameters are correctly provided and valid; otherwise, the API will return an error indicating the resource was not found or unauthorized.
  • If authentication is required and skipped, the request will fail with an authentication error.
  • Verify the baseUrl is correct and accessible, especially if using a self-hosted GitLab instance.

Discussion