// DeleteModel attempts update the given model in the database.
DeleteModel attempts update the given model in the database.
// DeleteModel attempts update the given model in the database .
func (d *Database) DeleteModel(model interface{}) error {
	err := d.DB.Delete(model)
	if err != nil {
		d.Error("DeleteModel", "Model not delete", err)
		return errors.New("Could not delete model")
	}
	d.Success("DeleteModel", "Model deleted successfully")
	return nil
}
func ( d * Database ) DeleteModel ( model interface { } ) error { err := d . DB . Delete ( model ) if err != nil { d . Error ( " " , " " , err ) return errors . New ( " " ) } d . Success ( " " , " " ) return nil }
DeleteModel attempts update the given model in the database.
DeleteModel attempts update the given model in the database .