I building a server that supports file uploading/deleting using Vapor. I am collecting files to be uploaded using something like this:
let path = req.application.directory.workingDirectory
req.fileio.writeFile(.init(data: fileData), at: path)
But I was not sure how to delete those files. I only see options to read/stream/collect/write from the documentation.
Any help would be great!