If you miss lua5.1.dll library that won’t let you uninstall your scenery please download it here and place in your main P3D folder.