Skip to main content

## remove_profile

# Function remove_profile

Source

    pub async fn remove_profile(
        db: &Arc<RusqliteService>,
        user_id: &str,
    ) -> Result<(), String>

Expand description

Forget a profile: its PIN, its per-user rows, and its `users` row.

Deliberately does not call Jellyfin’s logout endpoint. Removing a profile from this device is a local act; invalidating a token the person may be using on their phone is not what “remove from this TV” means. The caller deletes the stored token separately.

TRACES: UR-082 | DR-267