Options (4)
-i, --interactivebooleanPrompt for confirmation and the username before user removal
Example:
dropuser {{[-i|--interactive]}}-h, --hostbooleanRemove a user on the server with address 127.0.0.1 on port 4321
Example:
dropuser {{[-h|--host]}} 127.0.0.1 {{[-p|--port]}} 4321 {{username}}-p, --portbooleanRemove a user on the server with address 127.0.0.1 on port 4321
Example:
dropuser {{[-h|--host]}} 127.0.0.1 {{[-p|--port]}} 4321 {{username}}-U, --usernamebooleanRemove a user on the server with address 127.0.0.1 on port 4321 as user "admin"
Example:
dropuser {{[-U|--username]}} admin {{[-h|--host]}} 127.0.0.1 {{[-p|--port]}} 4321 {{username}}Examples (5)
Prompt for confirmation and the username before user removal
dropuser [-i|--interactive]Remove user instantly
dropuser usernameNo error if the user to be removed doesn't exist
dropuser --if-exists usernameRemove a user on the server with address 127.0.0.1 on port 4321
dropuser [-h|--host] 127.0.0.1 [-p|--port] 4321 usernameRemove a user on the server with address 127.0.0.1 on port 4321 as user "admin"
dropuser [-U|--username] admin [-h|--host] 127.0.0.1 [-p|--port] 4321 usernamemade by @shridhargupta | data from tldr-pages