Those are dynamic properties defined in block definition. When you say "remove all of them", do you mean to redefine the block definition, so that there is no more dynamic properties in that block definition any more? If so, yes, you can do it in Block Editor manually. Once you have done that, all corresponding block references to the block definition would also lose there dynamic properties. However, there is no API available to add/modify/remove dynamic properties from block definition available, so you cannot do it with code.
On the other hand, if your purpose is to change all the dynamic block references into static block reference, you can call BlockReference.ConvertToStaticBlock() to make them static. After all changed, you could choose to purge the dynamic block definition.
You could also simply define a new static block definition with code, and re-point all block references to the old block definition to the new block definition; then you can purge the old dynamic block definition. You then could even rename the new block to the old block name.