Error "DeleteFile failed; code 5" Installing Tableau Server

Published: 12 Apr 2013
Last Modified Date: 17 Apr 2018


When you try to install Tableau Server, the following error might occur:
An error occurred while trying to rename a file in the destination directory:
DeleteFile failed; code 5.
Access is denied


Tableau Server


One of the following troubleshooting steps might solve the issue:
  • Restart the computer running Tableau Server.
  • Verify that the account used to sign in to Windows has full administrator access to the computer running Tableau Server.
  • Verify that the Run-As user has recursive permissions to C:\Program Files\Tableau\Tableau Sever and C:\ProgramData\Tableau\Tableau Server
  • Disable any anti-virus applications that may interfere with file access.


One or more files is locked by Windows.
Did this article resolve the issue?