Remove a network. Similar to the ``docker network rm`` command. Args: net_id (str): The network's id
(self, net_id)
| 175 | |
| 176 | @check_resource('net_id') |
| 177 | def remove_network(self, net_id): |
| 178 | """ |
| 179 | Remove a network. Similar to the ``docker network rm`` command. |
| 180 | |
| 181 | Args: |
| 182 | net_id (str): The network's id |
| 183 | """ |
| 184 | url = self._url("/networks/{0}", net_id) |
| 185 | res = self._delete(url) |
| 186 | self._raise_for_status(res) |
| 187 | |
| 188 | @check_resource('net_id') |
| 189 | def inspect_network(self, net_id, verbose=None, scope=None): |