The demolition issue of long-span spatial lattice structures has become increasingly prominent with the rapid urban development and building renewal. Compared with traditional demolition techniques, building deconstruction offers superior economic and social benefits. Dismantling in blocks is one of the primary ways to realize the deconstruction of long-span spatial lattice structures, yet the safety is rarely studied. To fill this gap, a safety evaluation framework was established based on deep learning and graph traversal algorithm in this study. Hazardous configuration of the remaining structure is the basis of dismantling safety evaluation. To collect the hazardous configurations, an identification method in conjunction with deep neural network (DNN) and depth-first search (DFS) algorithm was proposed. The dismantling safety is measured by the improved structural well-formedness whose allowable range is determined by statistical analysis of hazardous configurations. The applicability of the framework was illustrated by the safety evaluation for the dismantling of single-layer reticulated domes. Results indicated that the dismantling safety is significantly affected by the configuration quality of the remaining structure, and the DNN-based prediction model is effective to classify the configuration state. Additionally, a large number of hazardous configurations were obtained through the identification method, and the allowable value of the safety evaluation index was determined to be 0.7. The configuration quality mainly depends on the geometry and boundary conditions. This novel framework provides scientific and effective methodological guidance for engineers, promoting the further application of building deconstruction.