Deleting Unwanted User Profiles from macOS and Windows using JumpCloud
November 7, 2025
2 min read
ByNetNXT
Purpose
Remove unwanted or suspended user profiles on macOS and Windows endpoints directly via JumpCloud Commands, while preserving required users.
Prerequisites
- JumpCloud admin access
- Devices must be Active (commands won’t execute on Inactive machines)
- Username(s) to preserve must be identified before running scripts
- Understand risk: deletion is permanent
Step-by-Step Instructions
Step 1 — Delete unwanted user profiles on macOS
- Login to JumpCloud Admin Console
- Go to Commands → + Add New Command
- Select macOS
- Paste this script in the Command section
- (Replace
username_to_retainwith the user you want to keep enabled)
#!/bin/bash armed=false target_user="username_to_retain" sudo dscl . -delete "/Users/$target_user" AuthenticationAuthority ";DisabledUser;" IFS=
