// Delete deletes the given application
Delete deletes the given application
// Delete deletes the given application
func Delete(client *occlient.Client, name string) error {
	glog.V(4).Infof("Deleting application %s", name)
	labels := applabels.GetLabels(name, false)
	err := client.Delete(labels)
	if err != nil {
		return errors.Wrapf(err, "unable to delete application %s", name)
	}
	cfg, err := config.New()
	if err != nil {
		return errors.Wrapf(err, "unable to delete application %s", name)
	}
	err = cfg.DeleteApplication(name, client.Namespace)
	if err != nil {
		return errors.Wrapf(err, "unable to delete application %s", name)
	}
	return nil
}
func Delete ( client * occlient . Client , name string ) error { glog . V ( 4 ) . Infof ( " " , name ) labels := applabels . GetLabels ( name , false ) err := client . Delete ( labels ) if err != nil { return errors . Wrapf ( err , " " , name ) } cfg , err := config . New ( ) if err != nil { return errors . Wrapf ( err , " " , name ) } err = cfg . DeleteApplication ( name , client . Namespace ) if err != nil { return errors . Wrapf ( err , " " , name ) } return nil }
Delete deletes the given application
Delete deletes the given application
// delete application from cluster // delete from config