pub async fn delete_profile<R: Runtime>(
app: AppHandle<R>,
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).