The delete-domain command does not verify whether the domain to be removed is running. If the domain to be removed is running when the delete-domain command runs, the command should fail and should notify the user to stop the domain.
For more information, see Issue report.
Before the delete-domain command is executed, run the stop-domain command.