Portainer icon

Portainer

Interact with Portainer via API

Actions190

Helm → Helm User Repository Delete

AI-generated

Overview

This node operation allows you to delete a user repository in a Helm environment managed through Portainer. It is useful when you want to remove a specific repository associated with a user, for example, cleaning up unused or outdated repositories from your Helm setup.

Practical scenarios include:

  • Removing access to a Helm chart repository for a particular user.
  • Cleaning up repositories that are no longer needed or have been deprecated.
  • Managing user-specific Helm repositories programmatically via n8n workflows.

Properties

Name Meaning
Id User identifier (number)
Repository ID Repository identifier (number)

Both properties are required to specify which user's repository should be deleted.

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.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential to authenticate with the Portainer API.
  • The node interacts with the Portainer API endpoint configured in the credentials.
  • Proper permissions on the Portainer instance to delete user repositories are necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing user ID or repository ID can cause the operation to fail.
    • Insufficient permissions or invalid API credentials will prevent successful deletion.
    • Network connectivity issues to the Portainer API endpoint.
  • Error messages:

    • Authentication errors indicate problems with the provided API key or token.
    • "Not found" errors suggest the specified user or repository does not exist.
    • Permission denied errors mean the authenticated user lacks rights to perform deletions.

To resolve these, verify the input IDs, check API credentials, and ensure the user has appropriate permissions.

Links and References

Discussion