Is there a way to remove a server account network entry from terminal? I have a Mac mini running Mac OS X 10.10.3. It has an open directory server configured in the server account network configuration in 'Users and groups'.

Is there a way to remove that server account network entry from terminal?

To be more specific, I want to log in with the local user and remove the connection with the directory service for that particular server using the terminal.
After searching for a few hours I've finally found the command!

dsconfigldap -r *servername*