Today at Browserling I needed to delete a MacOS user via command line. As it's not documented, then for anyone else searching here is the solution:
sudo dscl . -delete /Users/username
After this, also delete home directory:
sudo rm -rf /Users/username
PS. I also wrote a tutorial on how to create a MacOS user via command line.
What Is Browserling?
Browserling is an online tool that helps users test websites on different browsers quickly, making it useful for web developers and cybersecurity professionals alike. Besides checking how a site appears on Chrome, Firefox, Safari, and more, Browserling can be used to safely explore and analyze potentially risky sites without exposing your computer to threats. This browser-testing tool lets cybersecurity teams investigate website security, check for vulnerabilities, and ensure compatibility across platforms – all without needing to install multiple browsers on their systems.
Who Uses Browserling?
Browserling has now become the cross-browser testing platform of choice for web developers, designers, and QA teams and it's used by hundreds of thousands of users around the world every month. Browserling's customers include governments, states, cities, banks, stock exchanges, universities, newspapers, Fortune 100, Fortune 500 companies, and private multi-billion dollar companies.
Happy testing!