GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific secure file from a GitLab project using the GitLab API. It is useful for managing project files securely by removing files that are no longer needed or should be revoked. For example, a user can delete sensitive files stored in a project to maintain security compliance or clean up unused resources.

Use Case Examples

  1. Deleting a secure file from a project by specifying the project ID and the secure file ID.
  2. Automating the removal of secure files in CI/CD pipelines to ensure only current files are retained.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Specifies the authentication method to use, 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 used for this operation.
Path Parameters Parameters required in the URL path to identify the project and secure file to delete.

Output

JSON

  • success - Indicates whether the secure file was successfully deleted.
  • statusCode - HTTP status code returned by the API after the delete operation.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and secure file ID are correct and exist in the GitLab instance.
  • Verify that the API key used has sufficient permissions to delete secure files in the project.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the project or secure file does not exist, and 403 Forbidden if the API key lacks permissions.

Links

Discussion