code: def remove_block(self, block, index="-1"):
          
          self[index]["__blocks__"].remove(block)
          self[index]["__names__"].remove(block.raw())
docs: Remove block element from scope
          Args:
              block (Block): Block object