public interface ChannelDeleteCommand extends MetaModelReferenceExpansionDsl<Channel,ChannelDeleteCommand,ChannelExpansionModel<Channel>>, DeleteCommand<Channel>
final Channel channel = client().executeBlocking(ChannelCreateCommand.of(ChannelDraft.of(randomKey()))); client().executeBlocking(ChannelDeleteCommand.of(channel)); assertThat(client().executeBlocking(ChannelByIdGet.of(channel.getId()))).isNull();See the test code.
Channel| Modifier and Type | Method and Description |
|---|---|
static ChannelDeleteCommand |
of(Versioned<Channel> versioned)
Creates a command object to delete a
Channel by ID. |
plusExpansionPaths, withExpansionPathsplusExpansionPaths, plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPathsexpansionPathscanDeserialize, deserialize, httpRequestIntentstatic ChannelDeleteCommand of(Versioned<Channel> versioned)
Channel by ID.versioned - the object to delete (so directly a Channel) or just the version/ID information of it