Assuming you only wish to clear the names of these bricks, and that you know the name of the brick, you can enter this console command:
_nameofbrick.setNTObjectName("");
So for example, there's a brick named asd, you would do
_asd.setNTObjectName("");