NSFileManager *defaultManager; defaultManager = [NSFileManager defaultManager]; [defaultManager removeFileAtPath: tildeFilename handler: nil];The handler is an object that will be sent message, likefileManager:shouldProceedAfterError:
if something goes wrong during the removal.