func HandleDeleteInput(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	// DELETE /system/inputs/{inputID} Terminate input on this node
	id := ps.ByName("inputID")
	if sc, err := lgc.Authorize(user, "inputs:terminate", id); err != nil {
		return nil, sc, err
	}
	sc, err := lgc.DeleteInput(id)
	if err != nil {
		return nil, sc, err
	}
	if err := lgc.Save(); err != nil {
		return nil, 500, err
	}
	return nil, sc, nil
}
// HandleDeleteInput is the handler of Delete an Input API.
HandleDeleteInput is the handler of Delete an Input API.
// HandleDeleteInput is the handler of Delete an Input API .
func HandleDeleteInput(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, ps httprouter.Params,
) (interface{}, int, error) {
	id := ps.ByName("inputID")
	if sc, err := lgc.Authorize(user, "inputs:terminate", id); err != nil {
		return nil, sc, err
	}
	sc, err := lgc.DeleteInput(id)
	if err != nil {
		return nil, sc, err
	}
	if err := lgc.Save(); err != nil {
		return nil, 500, err
	}
	return nil, sc, nil
}
func HandleDeleteInput ( user * graylog . User , lgc * logic . Logic , w http . ResponseWriter , r * http . Request , ps httprouter . Params , ) ( interface { } , int , error ) { id := ps . ByName ( " " ) if sc , err := lgc . Authorize ( user , " " , id ) ; err != nil { return nil , sc , err } sc , err := lgc . DeleteInput ( id ) if err != nil { return nil , sc , err } if err := lgc . Save ( ) ; err != nil { return nil , 500 , err } return nil , sc , nil }
HandleDeleteInput is the handler of Delete an Input API.
HandleDeleteInput is the handler of Delete an Input API .
// DELETE /system/inputs/{inputID} Terminate input on this node