Flatten combines all layers and applies the sculpting information to the original base level for the mesh and then deletes the layers.