Hello,
clearBlock removes the whole paragraphs where block placeholders exist, so if your contents are in the same paragraph they will be removed.
We recommend you to use removeTemplateVariable doing an inline type clean, for example:
$docx->removeTemplateVariable('BLOCK_A', 'inline');
If you need to get the existing placeholders please use getTemplateVariables.
Regards.