Remove an installed plugin. Args: name (string): Name of the plugin to remove. The ``:latest`` tag is optional, and is the default if omitted. force (bool): Disable the plugin before removing. This may
(self, name, force=False)
| 207 | @utils.minimum_version('1.25') |
| 208 | @utils.check_resource('name') |
| 209 | def remove_plugin(self, name, force=False): |
| 210 | """ |
| 211 | Remove an installed plugin. |
| 212 | |
| 213 | Args: |
| 214 | name (string): Name of the plugin to remove. The ``:latest`` |
| 215 | tag is optional, and is the default if omitted. |
| 216 | force (bool): Disable the plugin before removing. This may |
| 217 | result in issues if the plugin is in use by a container. |
| 218 | |
| 219 | Returns: |
| 220 | ``True`` if successful |
| 221 | """ |
| 222 | url = self._url('/plugins/{0}', name) |
| 223 | res = self._delete(url, params={'force': force}) |
| 224 | self._raise_for_status(res) |
| 225 | return True |
| 226 | |
| 227 | @utils.minimum_version('1.26') |
| 228 | @utils.check_resource('name') |