vikunja-api/models/list_items_delete.go
2018-08-30 08:09:17 +02:00

14 lines
246 B
Go

package models
// Delete implements the delete method for listTask
func (i *ListTask) Delete() (err error) {
// Check if it exists
_, err = GetListTaskByID(i.ID)
if err != nil {
return
}
_, err = x.ID(i.ID).Delete(ListTask{})
return
}