GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific remote mirror from a GitLab project using the GitLab API. It is useful for managing project mirrors by removing outdated or unnecessary remote mirrors. For example, if a project has a remote mirror that is no longer needed, this operation can be used to delete it by specifying the project ID and the mirror ID.

Use Case Examples

  1. Deleting a remote mirror from a project to stop synchronization with an external repository.
  2. Removing a remote mirror that is no longer valid or accessible.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, default is GET but DELETE is used for this operation.
Path Parameters Parameters required in the URL path to identify the project and the remote mirror 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 remote mirror.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and mirror ID are correct and exist in GitLab to avoid 404 Not Found errors.
  • Verify that the API authentication token has sufficient permissions to delete remote mirrors in the project.
  • Check network connectivity and the base URL to ensure the GitLab instance is reachable.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests for this operation, otherwise it will fail.

Links

Discussion