Edit > Delete Unused Nodes
 
 
 

Deletes nodes not assigned to geometry or particles.