Deleting volumes generated by rancher-secrets

A lot of volumes of secrets get generated if one of the container( using secrets) goes unhealthy, by recreating the container again and again. It creates 1000s of volumes in one of the machine, but I am unable to delete those unnecessary volumes with any of the commands like “docker prune” or “docker volume rm”

What is the command to remove those unused volumes? Is there any api or rancher cli commands available?