Portainer.i.o cannot auto delete service after update new service

portainer.i.o cannot auto delete service after update new service ?
Usually when creating a new service it should be auto delete.

This is only true, if docker swarm update --task-history-limit 0 (or whatever the portainer way to set it is) was executred before.

By default, the task history limit is 5 (per task/replica!).

What do I need to do to be able to auto delete, any advice? Thanks.

Since the above condition is not true, you need to make it true by running the command I already mentioned in my previous post:

I have to do either master or worker. ?

Since when are swarm related commands used anywhere else than on the manager nodes?

Then I can delete the manual. The gui page can’t be deleted.
I tried what you suggested but the machine still hasn’t been removed, is there anything else I should check? Thanks