vikunja-api/models/list_items_delete.go
2018-07-12 22:42:41 +02:00

14 lines
250 B
Go

package models
// Delete implements the delete method for listItem
func (i *ListItem) Delete(id int64) (err error) {
// Check if it exists
_, err = GetListItemByID(id)
if err != nil {
return
}
_, err = x.ID(id).Delete(ListItem{})
return
}