func (self *Tenant) Delete() error { if self.Key == "" { log.Errorf("Empty key while trying to Delete tenant object") return errors.New("Empty key") } return modeldb.DeleteObj("tenant", self.Key) }
func (self *Network) Delete() error { if self.Key == "" { log.Errorf("Empty key while trying to Delete network object") return errors.New("Empty key") } return modeldb.DeleteObj("network", self.Key) }