GitLab API icon

GitLab API

Gitlab

Actions880

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 configuration files or credentials stored as secure files in a project.

Use Case Examples

  1. Deleting a secure file from a project to revoke access to sensitive data.
  2. Automating cleanup of secure files in CI/CD pipelines after deployment.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, 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 project and secure file to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • responseBody - Response body returned from the GitLab API after attempting to delete the secure file.

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 if using a self-hosted GitLab instance to ensure it is correct.
  • 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