Portainer icon

Portainer

Work with Portainer API data to manage Docker

Team → Delete

AI-generated

Overview

This node operation deletes a team in Portainer by its ID. It is useful for managing team resources within Portainer, especially when a team is no longer needed or must be removed for organizational changes. For example, an admin can delete a team that has been disbanded or merged with another team.

Use Case Examples

  1. Deleting a team by specifying its Team ID to remove it from Portainer.
  2. Force deleting a team even if it is currently in use, by enabling the force delete option.

Properties

Name Meaning
Team ID The ID of the team to be deleted, required to identify which team to remove.
Force Delete A boolean flag indicating whether to force deletion even if the team resource is currently in use.

Output

JSON

  • body - The response body from the Portainer API after attempting to delete the team, typically indicating success or failure.

Dependencies

  • Portainer API with an API key credential for authentication

Troubleshooting

  • Ensure the Team ID is valid and exists in Portainer; otherwise, the deletion will fail.
  • If force delete is not enabled and the team is in use, the API may reject the deletion request.
  • Check API key credentials and network connectivity to Portainer API if requests fail.

Links

Discussion