# How do you use PakBlacklist-Shipping.txt?

**URL:** <https://forums.unrealengine.com/t/how-do-you-use-pakblacklist-shipping-txt/332840>\
**Category:** Mobile\
**Tags:** apk-size, unreal-engine, Android, question\
**Created:** [September 20, 2015, 1:15pm UTC](https://forums.unrealengine.com/t/how-do-you-use-pakblacklist-shipping-txt/332840 "2015-09-20T13:15:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pesk92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pesk92](https://forums.unrealengine.com/u/Pesk92)\
**Post date:** [September 20, 2015, 1:15pm UTC](https://forums.unrealengine.com/t/how-do-you-use-pakblacklist-shipping-txt/332840/1 "2015-09-20T13:15:03Z")

</div>

Hi.  
I used [this][1] to try and reduce my apk size. However it doesn’t seem to do anything. I am probably using it wrong. Can you show me a real example or point out what I am doing wrong?  
Thanks.  
A few pics of what I am doing:

 ![59438-blacklist.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/e/f9ef3abe73e4946763969865f9773fa2a06dba06.png)

 ![59437-enginecontent.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/4/3a4e67a8c88a3d0f1e35530245c51cccf39924d2.png)

---

<div class="post-metadata">

**Author:** ![Retro11231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Retro11231](https://forums.unrealengine.com/u/Retro11231)\
**Post date:** [September 30, 2015, 10:43pm UTC](https://forums.unrealengine.com/t/how-do-you-use-pakblacklist-shipping-txt/332840/2 "2015-09-30T22:43:50Z")

</div>

Running into the same issue.

---

<div class="post-metadata">

**Author:** ![Retro11231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Retro11231](https://forums.unrealengine.com/u/Retro11231)\
**Post date:** [October 1, 2015, 2:31am UTC](https://forums.unrealengine.com/t/how-do-you-use-pakblacklist-shipping-txt/332840/3 "2015-10-01T02:31:51Z")

</div>

I have found the solution!

What I assumed and still assume happened to prevent the black list to work is that files were remaining from previous builds and/or cooks. I got this to work by clearing old cooked assets and build data.

Files I cleared

Project/Build/[Platform]/ (All files in this directory)

Project/Saved/Cooked/ (All files in this directory)

I hope this helps! =D

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f41d4cf9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f41d4cf9](https://forums.unrealengine.com/u/anonymous_user_f41d4cf9)\
**Post date:** [October 21, 2015, 12:24pm UTC](https://forums.unrealengine.com/t/how-do-you-use-pakblacklist-shipping-txt/332840/4 "2015-10-21T12:24:23Z")

</div>

hi~I have several questions, Is Blacklist use to not cook the resource or not package? Should I use relative path or absolute path? Should I use pak? Do you know that, thanks you

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_642ca581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_642ca581](https://forums.unrealengine.com/u/anonymous_user_642ca581)\
**Post date:** [January 11, 2016, 1:13am UTC](https://forums.unrealengine.com/t/how-do-you-use-pakblacklist-shipping-txt/332840/5 "2016-01-11T01:13:54Z")

</div>

seems to be the blacklist is only used when ‘use pak file’ is enabled in the packaging settings.

---

<div class="post-metadata">

**Author:** ![Pesk92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pesk92](https://forums.unrealengine.com/u/Pesk92)\
**Post date:** [May 12, 2016, 4:56pm UTC](https://forums.unrealengine.com/t/how-do-you-use-pakblacklist-shipping-txt/332840/6 "2016-05-12T16:56:10Z")

</div>

I forgot to answer this. If anyone is running into the same issue, it was just the fact that I had put C:/blabla/blabla/engine/ instead of …/…/…/engine/ in the beginning of each line. I have attached my blacklist to this answer if anyone should need it.link text

---

<div class="post-metadata">

**Author:** ![Begounet](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Begounet](https://forums.unrealengine.com/u/Begounet)\
**Post date:** [February 12, 2018, 10:02pm UTC](https://forums.unrealengine.com/t/how-do-you-use-pakblacklist-shipping-txt/332840/7 "2018-02-12T22:02:00Z")

</div>

Thanks! **ONLY** after ‘Use Pak file’ was selected I could see the “Applying PAK blacklist file” and the new package size confirmed it.

---

<div class="post-metadata">

**Author:** ![neofuturelabs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neofuturelabs/32/1194562_2.png) [@neofuturelabs](https://forums.unrealengine.com/u/neofuturelabs)\
**Post date:** [February 22, 2023, 9:14am UTC](https://forums.unrealengine.com/t/how-do-you-use-pakblacklist-shipping-txt/332840/8 "2023-02-22T09:14:31Z")

</div>

This thread is still one of the top Google results for pak blacklisting, so I think it’s important to note that “PakBlacklist-Shipping.txt” and “PakBlacklist-Development.txt” are both deprecated in UE4/5 (since version v4.25 or so).

The above methods have been replaced with DefaultPakFileRules.ini.

Directions on how to set this up in the following post:

> [@PAK blacklist file deprecated in favor of DefaultPakFileRules.ini](https://forums.unrealengine.com/t/pak-blacklist-file-deprecated-in-favor-of-defaultpakfilerules-ini/153080/5):
>
> Thanks for the information. After first trying the PakBlacklist rules without realizing they are deprecated and ignored during packaging, and then after a couple more hours of trial and error, I finally managed to get the exclusion list working. Results: Saved about 3MB in final shipping package size, mostly from the excluded Slate image files. Not too significant, but at least it works. How to get it to work: Create the file DefaultPakFileRules.ini in your [Project]/Config directory. Pa…
