MCPcopy Create free account
hub / github.com/gotify/server / DeleteMessageByID

Method DeleteMessageByID

database/message.go:79–81  ·  view source on GitHub ↗

DeleteMessageByID deletes a message by its id.

(id uint)

Source from the content-addressed store, hash-verified

77
78// DeleteMessageByID deletes a message by its id.
79func (d *GormDatabase) DeleteMessageByID(id uint) error {
80 return d.DB.Where("id = ?", id).Delete(&model.Message{}).Error
81}
82
83// DeleteMessagesByApplication deletes all messages from an application.
84func (d *GormDatabase) DeleteMessagesByApplication(applicationID uint) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected