deleteFileWithRetry

private fun deleteFileWithRetry(file: File, maxRetries: Int = FILE_DELETE_MAX_RETRIES, delayMs: Long = FILE_DELETE_RETRY_DELAY_MS)

Attempts to delete a file with retry logic to handle temporarily locked files.