api!: remove dc_delete_all_locations

This commit is contained in:
link2xt
2026-04-24 21:41:29 +02:00
committed by l
parent c17d067a1a
commit 1ab6645bbc
6 changed files with 3 additions and 47 deletions

View File

@@ -459,13 +459,6 @@ fn is_marker(txt: &str) -> bool {
}
}
/// Deletes all locations from the database.
pub async fn delete_all(context: &Context) -> Result<()> {
context.sql.execute("DELETE FROM locations;", ()).await?;
context.emit_location_changed(None).await?;
Ok(())
}
/// Deletes expired locations.
///
/// Only path locations are deleted.