We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 55803

Vivado - "ERROR: [Project 1-161] Failed to remove the directory..."


If I attempt to archive the project in the Vivado integrated design environment (IDE), the following error occurs:

ERROR: [Project 1-161] Failed to remove the directory 'C:/Users/<user_name>/AppData/Roaming/Xilinx/Vivado/.Xil/Vivado-7040-AUBAY04NB909022/PrjAr/_X_/scratch1.srcs'. The directory might be in use by some other process.


This message is tied to available permissions and available memory in the 'C:/Users/<user_name>/AppData/Roaming/Xilinx/Vivado " directory. This is the default working directory that is used when the Vivado tool is opened from the Start menu in Windows OS.

Below are some suggestions on how to change the working directory to allow the archive to work successfully:

  • Double-click on the .xpr project file to open the Vivado tool with the project directory as the working directory.
  • If you have opened the Vivado tool from the Start menu, in the Tcl console, cd to the writable directory; a directory with a short character length is best, see (Xilinx Answer 52787).
  • Open Vivado in Tcl mode, then change directories before archiving.
    1. Start in Tcl mode
      • Go to Start -> Xilinx Design Tools -> Vivado <version #> -> Vivado tcl shell. (Please refer below snap shot)
      • vivado mode tcl
    2. Change your directory and provide the project location (e.g., cd C:\test\projects\my_proj).
    3. Use the commands below to archive the project:
      • open_project <Project_name.xpr> (e.g., open_projectmy_proj.xpr).
      • archive_project <archive_name>      (e.g., archive_projectmy_proj).

    The archive will be placed in the working directory.

Linked Answer Records

Associated Answer Records

Answer Number Answer Title Version Found Version Resolved
52787 Vivado - "ERROR: [Common 17-143] Path length exceeds 260-Byte maximum allowed by Windows" N/A N/A
AR# 55803
Date 10/09/2013
Status Active
Type General Article
  • Vivado Design Suite - 2013.1