[swift] Swift에서 파일을 삭제하기 위해 필요한 코드
import Foundation
do { let fileURL = URL(fileURLWithPath: “/path/to/file.txt”) try FileManager.default.removeItem(at: fileURL) } catch { print(error) } ```
import Foundation
do { let fileURL = URL(fileURLWithPath: “/path/to/file.txt”) try FileManager.default.removeItem(at: fileURL) } catch { print(error) } ```