GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a secure file from a specified project in GitLab 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 automate the cleanup of secure files in their GitLab projects to maintain security and organization.

Use Case Examples

  1. Deleting a secure file from a project by specifying the project ID and the secure file ID.
  2. Automating secure file management in CI/CD pipelines by removing outdated or compromised files.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, 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 set to DELETE for this operation.
Path Parameters Parameters required in the request path to identify the project and secure file to delete.

Output

JSON

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

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and secure file ID are correct and exist in the GitLab instance.
  • Verify that the authentication token has sufficient permissions to delete secure files in the project.
  • Check the base URL to ensure it points to the correct GitLab instance if using a self-hosted GitLab server.
  • Common error messages include 404 Not Found if the project or secure file does not exist, and 403 Forbidden if the authentication lacks necessary permissions.

Links

Discussion