GitLab API

GitlabTool

Actions1000

Overview

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

Use Case Examples

  1. Deleting a project upload file by specifying the project ID, secret, and filename to maintain project storage hygiene.
  2. Automating the removal of specific files uploaded to a GitLab project as part of a CI/CD pipeline cleanup process.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl The 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 request path to identify the project upload to delete, including secret, filename, and project ID.

Output

JSON

  • id - The ID of the project from which the upload is deleted.
  • secret - The 32-character secret key associated with the project upload.
  • filename - The filename of the project upload to be deleted.

Dependencies

  • GitLab API key credential

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 the API key credentials.
  • HTTP method must be set to DELETE to perform the deletion; using other methods will not delete the upload.
  • Check the base URL if using a self-hosted GitLab instance to ensure the request targets the correct server.

Links

Discussion