code: def delete_all_volumes(self):
          
          # Raise an exception if we are not a manager
          if not self._manager:
              raise RuntimeError('Volumes can only be deleted '
                                 'on swarm manager nodes')
  
          volume_list = self.get_volume_list()
          for volumes in volume_list:
              # Remove all the services
              self._api_client.remove_volume(volumes, force=True)
docs: Remove all the volumes.
  
          Only the manager nodes can delete a volume