let filemgr = FileManager.default do { try filemgr.removeItem(atPath: path) print("Removal successful") } catch let error { print("Error: \(error.localizedDescription)") }