pub async fn delete_profile(
app: AppHandle,
scheduler: State<'_, Scheduler>,
name: String,
) -> Result<(), String>Expand description
Delete a profile by name. Refuses to delete the only profile or the currently-active profile (the user must switch first).