GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific wiki page identified by its slug within a group in GitLab. It is useful for automating the removal of outdated or unwanted wiki pages in GitLab groups, helping maintain organized and relevant documentation. For example, a user can automate the deletion of deprecated project documentation pages across multiple groups.

Use Case Examples

  1. Automate deletion of a wiki page in a GitLab group by specifying the group ID and the wiki page slug.
  2. Remove outdated wiki pages from GitLab groups as part of a cleanup workflow.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, 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.
Slug The slug of the wiki page to delete.
Id The ID of the group containing the wiki page.

Output

JSON

  • success - Indicates if the wiki page was successfully deleted.
  • statusCode - HTTP status code returned by the API.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and wiki slug are correct and exist in GitLab.
  • Verify that the API key has sufficient permissions to delete wiki pages in the specified group.
  • Check network connectivity and the base URL configuration if the request fails to reach the GitLab server.
  • Common error messages include 404 Not Found if the wiki page or group does not exist, and 403 Forbidden if the API key lacks delete permissions.

Links

Discussion