Optionally specify a version to delete a specific version of the channel.
@example
import utils from'@eventcatalog/utils'; const{ rmChannelById }=utils('/path/to/eventcatalog'); // deletes the latest InventoryChannel channel awaitrmChannelById('inventory.{env}.events'); // deletes a specific version of the InventoryChannel channel awaitrmChannelById('inventory.{env}.events','0.0.1');
Delete a channel by it's id.
Optionally specify a version to delete a specific version of the channel.