GitLab API icon

GitLab API

Gitlab

Actions880

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 for the request, 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, default is GET but DELETE is relevant for this operation.
Path Parameters Parameters required in the URL path to identify the project upload to delete, including secret, filename, and project ID.

Output

JSON

  • statusCode - HTTP response status code indicating the result of the delete operation
  • body - Response body from the GitLab API, typically empty or containing confirmation of deletion

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID, secret, and filename are correctly specified to avoid 404 Not Found errors.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials are correctly configured.
  • Permission errors can happen if the API key does not have sufficient rights to delete project uploads.

Links

Discussion