psu/client/stack_delete.go

14 lines
292 B
Go
Raw Normal View History

package client
import (
"fmt"
"net/http"
portainer "github.com/portainer/portainer/api"
)
func (n *portainerClientImp) StackDelete(stackID portainer.StackID) (err error) {
2019-09-10 23:03:39 +00:00
err = n.DoJSONWithToken(fmt.Sprintf("stacks/%d", stackID), http.MethodDelete, http.Header{}, nil, nil)
return
}