Skip to main content

delete_event

Function delete_event 

Source
pub async fn delete_event(
    pool: &SqlitePool,
    id: i64,
    cron_mode: bool,
    confirm: bool,
) -> Result<()>
Expand description

Delete a recurring or regular event by ID.

ยงParameters

  • pool: instance of an SQLite database pool, that takes SQL requests
  • id: ID of the event in the database
  • cron_mode: Delete recurring events when this is true
  • confirm: Ask the user for confirmation unless this is true