GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific snippet from GitLab using the GitLab API. It is useful for automating the removal of code snippets or notes stored in GitLab, especially when managing multiple snippets programmatically or cleaning up obsolete snippets.

Use Case Examples

  1. Automatically delete a snippet by its ID after it is no longer needed.
  2. Integrate snippet deletion into a CI/CD pipeline to maintain repository cleanliness.

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 to which the API request is sent.
Method The HTTP method used for the request, default is DELETE for this operation.
Path Parameters Parameters included in the request path, specifically the snippet ID to delete.

Output

JSON

  • success - Indicates whether the snippet was successfully deleted.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the snippet ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the API authentication credentials are correctly configured and have sufficient permissions to delete snippets.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion