package chapters import "git.aiterp.net/rpdata/api/models" // Remove removes a chapter. func Remove(chapter models.Chapter) (models.Chapter, error) { if err := collection.RemoveId(chapter.ID); err != nil { return models.Chapter{}, err } return chapter, nil }