It's recommended to avoid wearing backless sandals and high heels on a flight for safety reasons. These types of footwear can make it difficult to evacuate the aircraft quickly. In the case of an evacuation using emergency slides, high heels would need to be removed as they can damage the slide.