Remove this volume. Args: force (bool): Force removal of volumes that were already removed out of band by the volume driver plugin. Raises: :py:class:`docker.errors.APIError` If volume failed to remove.
(self, force=False)
| 12 | return self.attrs['Name'] |
| 13 | |
| 14 | def remove(self, force=False): |
| 15 | """ |
| 16 | Remove this volume. |
| 17 | |
| 18 | Args: |
| 19 | force (bool): Force removal of volumes that were already removed |
| 20 | out of band by the volume driver plugin. |
| 21 | Raises: |
| 22 | :py:class:`docker.errors.APIError` |
| 23 | If volume failed to remove. |
| 24 | """ |
| 25 | return self.client.api.remove_volume(self.id, force=force) |
| 26 | |
| 27 | |
| 28 | class VolumeCollection(Collection): |
nothing calls this directly
no test coverage detected