# Cannot package project - failed to delete staging directory

**URL:** <https://forums.unrealengine.com/t/cannot-package-project-failed-to-delete-staging-directory/347767>\
**Category:** Platform & Builds\
**Tags:** error, unreal-engine, update, packaging-projects, question\
**Created:** [February 17, 2016, 3:16pm UTC](https://forums.unrealengine.com/t/cannot-package-project-failed-to-delete-staging-directory/347767 "2016-02-17T15:16:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_69b87708](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69b87708](https://forums.unrealengine.com/u/anonymous_user_69b87708)\
**Post date:** [February 17, 2016, 3:16pm UTC](https://forums.unrealengine.com/t/cannot-package-project-failed-to-delete-staging-directory/347767/1 "2016-02-17T15:16:26Z")

</div>

I just received an update to the UE4 editor and now for the life of me, I cannot get my project packaged.

I am trying to package for Windows 10 x64 and have done this millions (okay, not millions :D) of times without trouble.

When I try to package (using the shipping configuration) I get the following error:

> PackagingResults:Error: Error Failed  
> to delete staging directory. This  
> could be because something is  
> currently using the staging directory  
> (ps4/xbox/etc)

I have deleted all binaries and output build folders in the project, I have cleaned and recompiled the solution, I have restarted multiple my machine times, tried deleting the staging directory manually. I have even tried running UE4 in admin mode. However, the issue remains.

It seems to get stuck on “ **End Deployment Context** ”

The line that sticks out for me is:

> Access to the path  
> ‘C:\Users\Google  
> Drive\Newcastle  
> University\PhD\Code\UE4\IRR\Saved\StagedBuilds\WindowsNoEditor\Engine\Binaries\ThirdParty\ICU\icu4c-53\_1\Win64\VS2015’  
> is denied

How can I fix this so that I can once again package my project?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69b87708](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69b87708](https://forums.unrealengine.com/u/anonymous_user_69b87708)\
**Post date:** [February 18, 2016, 5:06pm UTC](https://forums.unrealengine.com/t/cannot-package-project-failed-to-delete-staging-directory/347767/2 "2016-02-18T17:06:13Z")

</div>

I fixed this by deleting the “Saved” directory from the main folder, as well as all the “Build” and “Binaries” folders.

---

<div class="post-metadata">

**Author:** ![GVWorks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GVWorks](https://forums.unrealengine.com/u/GVWorks)\
**Post date:** [November 21, 2021, 7:22am UTC](https://forums.unrealengine.com/t/cannot-package-project-failed-to-delete-staging-directory/347767/3 "2021-11-21T07:22:33Z")

</div>

run cmd

```
chkdsk /f D:
```

---

<div class="post-metadata">

**Author:** ![Studio\_Marvin\_3D1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/studio_marvin_3d1/32/570015_2.png) [@Studio\_Marvin\_3D1](https://forums.unrealengine.com/u/Studio_Marvin_3D1)\
**Post date:** [November 24, 2024, 2:18am UTC](https://forums.unrealengine.com/t/cannot-package-project-failed-to-delete-staging-directory/347767/4 "2024-11-24T02:18:00Z")

</div>

You don’t need to delete all “saved” directory. Just delete the “StagedBuilds” folder content. It worked for me.

---

<div class="post-metadata">

**Author:** ![yghtim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yghtim](https://forums.unrealengine.com/u/yghtim)\
**Post date:** [May 22, 2025, 11:08am UTC](https://forums.unrealengine.com/t/cannot-package-project-failed-to-delete-staging-directory/347767/5 "2025-05-22T11:08:58Z")

</div>

I had this issue as well, i fixed it by turning off google drive, since it was trying to sync the files.
