                     schema_name, schema_name, b_id, b_id);
 
   -- delete referenced building installation(s)
-  EXECUTE format('SELECT geodb_pkg.delete_building_inst(id, %L) FROM %I.building_installation WHERE building_id = %L', 
+  EXECUTE format('SELECT geodb_pkg.delete_building_installation(id, %L) FROM %I.building_installation WHERE building_id = %L', 
                     schema_name, schema_name, b_id);
 
   -- delete referenced thematic surfaces

                    schema_name, schema_name, brd_id, brd_id);

  -- delete referenced bridge installation(s)
  EXECUTE format('SELECT geodb_pkg.delete_bridge_inst(id, %L) FROM %I.bridge_installation WHERE bridge_id = %L', 
                    schema_name, schema_name, brd_id);

  -- delete referenced bridge thematic surfaces

BEGIN
  --// PRE DELETE TUNNEL HOLLOW SPACE //--
  -- delete referenced tunnel installation(s)
  EXECUTE format('SELECT geodb_pkg.delete_tunnel_installation(id, %L) FROM %I.tunnel_installation WHERE tunnel_hollow_space_id = %L', 
                    schema_name, schema_name, tunhs_id);

  -- delete referenced tunnel thematic surfaces
