Optionally specify a version to delete a specific version of the domain.
@example
import utils from'@eventcatalog/utils'; const{ rmDomainById }=utils('/path/to/eventcatalog'); // deletes the latest Payment event awaitrmDomainById('Payment'); // deletes a specific version of the Payment event awaitrmDomainById('Payment','0.0.1');
Delete a domain by it's id.
Optionally specify a version to delete a specific version of the domain.