     
     
     // The buffer file is typically the one used for storing logs that will be sent to the server
+    // TODO: Rename to delete any file
     internal static func deleteBufferFile(bufferFile: String) {
         
-        if Logger.fileManager.isDeletableFileAtPath(bufferFile) {
+        let filePath = Logger.logsDocumentPath + bufferFile
+        
+        if Logger.fileManager.fileExistsAtPath(filePath) && Logger.fileManager.isDeletableFileAtPath(filePath) {
             do {
-                try Logger.fileManager.removeItemAtPath(bufferFile)
+                try Logger.fileManager.removeItemAtPath(filePath)
             }
             catch let error {
                 Logger.internalLogger.error("Failed to delete log file \(bufferFile) after sending. Error: \(error)")

        // Use a serial queue to ensure that the same logs do not get sent more than once
        dispatch_async(Logger.sendLogsToServerQueue) { () -> Void in
            do {
                let logsToSend: String? = try getLogs(fileName: FILE_LOGGER_LOGS, overflowFileName: FILE_LOGGER_OVERFLOW, bufferFileName: FILE_LOGGER_SEND)
                if let logPayload = logsToSend, request = buildLogSendRequest(logSendCallback) {
                    
                    // Everything went as expected, so send the logs!
                    let logPayloadJson = ["__logdata": logPayload]
                    let logPayloadData = try NSJSONSerialization.dataWithJSONObject(logPayloadJson, options: [])
                    request.sendData(logPayloadData, withCompletionHandler: logSendCallback)
                }
                else {
                    Logger.internalLogger.info("There are no logs to send.")
                }
            }
            catch let error as NSError {

    
    /// If set to `false`, the internal BMSCore debug logs will not be displayed on the console.
    /// However, the logs will continue to be written to file provided that `logStoreEnabled` is `true` and the `logLevelFilter` property is at the `Debug` level.
    public static var sdkDebugLoggingEnabled: Bool = true
    
    /// True if the app crashed recently due to an uncaught exception.
    /// This property will be set back to `false` if the logs are sent to the server.
