mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-24 17:30:29 +08:00
add force flag to host/node delete (#2548)
* add force flag to host/node delete * review comments --------- Co-authored-by: Abhishek K <32607604+abhishek9686@users.noreply.github.com>
This commit is contained in:
@@ -27,8 +27,8 @@ func UpdateNode(networkName, nodeID string, node *models.ApiNode) *models.ApiNod
|
||||
}
|
||||
|
||||
// DeleteNode - delete a node
|
||||
func DeleteNode(networkName, nodeID string) *models.SuccessResponse {
|
||||
return request[models.SuccessResponse](http.MethodDelete, fmt.Sprintf("/api/nodes/%s/%s", networkName, nodeID), nil)
|
||||
func DeleteNode(networkName, nodeID string, force bool) *models.SuccessResponse {
|
||||
return request[models.SuccessResponse](http.MethodDelete, fmt.Sprintf("/api/nodes/%s/%s?force=%t", networkName, nodeID, force), nil)
|
||||
}
|
||||
|
||||
// CreateEgress - turn a node into an egress
|
||||
|
||||
Reference in New Issue
Block a user