Delete one or more records

7.Delete one or more records

Delete one or more records

  • delete by id
  1. affected, err := engine.ID(1).Delete(&User{})
  • delete by other conditions
  1. affected, err := engine.Delete(&User{Name:"xlw"})