remove
suspend fun remove(id: String, force: Boolean = false, link: Boolean = false, v: Boolean = false): Result<Unit, ErrorResponse>
Remove a container
Return
Operation response on success, or the Docker error response. Transport failures and cancellation can throw.
Parameters
id
Container ID or name.
force
Request forced removal; Docker still enforces its resource constraints.
link
Remove the specified container link instead of the container.
v
Remove associated anonymous volumes; named volumes are retained.