We have extended the Document Command API with two new commands, which are also available for Assistants.
removeComponent
{
operation: 'removeComponent',
componentId: 'doc-4a2b3g4d5'
}
unpublish
{
operation: 'unpublish'
}