Can't delete orphaned and failed task from history

I use portainer to control my swarm , but in the list of services I have all the tasks even those with an orphaned and failed status, is there a way to delete them ?

You could change the task history limit if you think you don’t need so many item in the history because you don’t want to roll back:

The number of items in the task history is determined by the --task-history-limit option that was set when initializing the swarm. You can change the task history retention limit using the docker swarm update command.

hi thanks it works :grinning: