Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to manage organizations. Specifically, the "Org Delete" operation allows users to delete an existing organization from their Gitea instance. This is useful in scenarios where organizations are no longer needed or must be removed for cleanup or administrative purposes.

Practical examples include:

  • Automating the removal of obsolete organizations as part of a maintenance workflow.
  • Integrating organization management into broader DevOps pipelines.
  • Cleaning up test or temporary organizations created during development cycles.

Properties

Name Meaning
Org The identifier (name or ID) of the organization that you want to delete. This property is required.

Output

The node outputs JSON data representing the result of the delete operation. Typically, this will confirm whether the deletion was successful or provide error details if it failed. Since this is a delete operation, the output JSON may be minimal or empty on success.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential to authenticate with the Gitea API.
  • The node expects the base URL of the Gitea instance to be configured in the credentials.
  • The node uses the Gitea REST API endpoint /api/v1 to perform operations.

Troubleshooting

  • Common issues:

    • Invalid or missing organization identifier will cause the delete operation to fail.
    • Insufficient permissions or invalid API credentials can lead to authorization errors.
    • Network connectivity problems to the Gitea server will prevent the request from completing.
  • Error messages and resolutions:

    • 404 Not Found: The specified organization does not exist. Verify the organization name or ID.
    • 401 Unauthorized or 403 Forbidden: Check that the API key has sufficient permissions to delete organizations.
    • Network errors: Ensure the Gitea server URL is correct and accessible from n8n.

Links and References

Discussion