Optionally specify a version to delete a specific version of the command.
@example
import utils from'@eventcatalog/utils'; const{ rmCommandById }=utils('/path/to/eventcatalog'); // deletes the latest UpdateInventory command awaitrmCommandById('UpdateInventory'); // deletes a specific version of the UpdateInventory command awaitrmCommandById('UpdateInventory','0.0.1');
Delete a command by it's id.
Optionally specify a version to delete a specific version of the command.