GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes all artifacts associated with a specific project in GitLab. It is useful for cleaning up or managing storage by removing build artifacts from a project. For example, a user can automate the deletion of old or unnecessary artifacts from a project to free up space or maintain project hygiene.

Use Case Examples

  1. Deleting artifacts from a project with a given project ID to free up storage space.
  2. Automating artifact cleanup in CI/CD pipelines after successful deployments.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to 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.
Parameter Schema Schema defining the path parameter 'id' which is the ID or URL-encoded path of the project.
Request Body Schema Schema for the request body, null for this operation as no body is needed.
Request Path API endpoint path for deleting project artifacts, with {id} as a path parameter.
Path Parameters Collection of path parameters, specifically the 'id' of the project to delete artifacts from.

Output

JSON

  • success - Indicates whether the artifact deletion was successful.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the authenticated user.
  • Check that the GitLab API key credential has sufficient permissions to delete artifacts in the specified project.
  • If authentication is skipped, the request will likely fail unless the GitLab instance allows unauthenticated artifact deletion (rare).
  • Common error messages include 404 Not Found if the project ID is invalid or 403 Forbidden if permissions are insufficient.

Links

Discussion