vikunja-api/pkg/models/list_tasks_delete.go
2018-10-31 12:42:38 +00: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
}