GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes review app environments for a specified GitLab project. It is useful for cleaning up temporary or outdated review app environments in a project, helping maintain a tidy and efficient development environment. For example, a user can delete review apps created before a certain date or limit the number of environments deleted in one operation.

Use Case Examples

  1. Deleting all review app environments older than 30 days for a project.
  2. Performing a dry run to see which review app environments would be deleted without actually deleting them.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters to filter or control the deletion operation.
Path Parameters Path parameters specifying the project ID or URL-encoded path.

Output

JSON

  • statusCode - HTTP status code of the response.
  • body - Response body containing the result of the delete operation.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID is correct and accessible by the authenticated user to avoid authorization errors.
  • Check that the base URL is correct if using a self-hosted GitLab instance.
  • If dry_run is true, no environments will be deleted; set dry_run to false to perform actual deletion.

Links

Discussion