To remove a workflow from the database use the command cmd4 config -in "" -name workflow name.
Example:
Use this command to remove the workflow named Import from the database.
cmd4 config -in "" -name wf_Import -username xxxx -password yyyy
where xxxx is the name of a GN4 user who can logon to system with sufficient permissions to perform this operation and yyyy is the password.
Note: the above connects to the default connection: should you want to specify the connection or server name, see cmd4 examples.