# Exported pages, images, stylesheets and scripts persistent in export folder

**URL:** <https://forum.bootstrapstudio.io/t/exported-pages-images-stylesheets-and-scripts-persistent-in-export-folder/11508>\
**Category:** Bug Reports\
**Created:** [July 11, 2024, 1:18am UTC](https://forum.bootstrapstudio.io/t/exported-pages-images-stylesheets-and-scripts-persistent-in-export-folder/11508 "2024-07-11T01:18:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregoryAM](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/gregoryam/32/5101_2.png) [@GregoryAM](https://forum.bootstrapstudio.io/u/GregoryAM)\
**Post date:** [July 11, 2024, 1:18am UTC](https://forum.bootstrapstudio.io/t/exported-pages-images-stylesheets-and-scripts-persistent-in-export-folder/11508/1 "2024-07-11T01:18:07Z")

</div>

Not 100% sure if the category is correct for this post.

When exporting a project in Bootstrap Studio; pages, images, stylesheets and scripts are still in the export folder even though they have been removed from the project.

> Example:  
>   
> I create a new project in Bootstrap Studio.  
>   
> The only files within Bootstrap Studio are `index.html` and `styles.css`.  
>   
> I export this and the only files within the export folder are the aforementioned.  
>   
> I create a new page “`page2.html`”.  
>   
> I export this and the files within the export folder are the aforementioned and “`page2.html`”.  
>   
> I delete “`page2.html`” from the project and export again.  
>   
> However, now, “`page2.html`” is still within the export folder, even though it was removed from the project completely.

I believe this is a bug within the software because if a file no longer exists within the project, then it should be removed from the export folder, unless this is a feature of the software (?).

This would save the headache of having to go into the export folder manually and removing it, especially when using an export script to upload websites to GitHub, or if you have a lot of assets that you have removed.

I am using the export script from the [Exporting to GitHub Pages | Bootstrap Studio](https://bootstrapstudio.io/docs/github-pages.html#the-export-script) docs.

---

<div class="post-metadata">

**Author:** ![GregoryAM](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/gregoryam/32/5101_2.png) [@GregoryAM](https://forum.bootstrapstudio.io/u/GregoryAM)\
**Post date:** [July 11, 2024, 1:21am UTC](https://forum.bootstrapstudio.io/t/exported-pages-images-stylesheets-and-scripts-persistent-in-export-folder/11508/2 "2024-07-11T01:21:55Z")

</div>

I don’t want to remove everything within the folder because my `.git` folder is within the export folder. Which I tried making a custom export script to remove everything besides that folder and it was unsuccessful.

Any help with this would be appreciated. 😃

---

<div class="post-metadata">

**Author:** ![printninja](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/printninja/32/481_2.png) [@printninja](https://forum.bootstrapstudio.io/u/printninja)\
**Post date:** [July 11, 2024, 2:58am UTC](https://forum.bootstrapstudio.io/t/exported-pages-images-stylesheets-and-scripts-persistent-in-export-folder/11508/3 "2024-07-11T02:58:18Z")

</div>

I would imagine this is by design. Most people who are self-hosting probably export to a local folder on their computer, and you never want software deleting files off your computer.

---

<div class="post-metadata">

**Author:** ![martin](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/martin/32/3_2.png) [@martin](https://forum.bootstrapstudio.io/u/martin)\
**Post date:** [July 11, 2024, 9:04am UTC](https://forum.bootstrapstudio.io/t/exported-pages-images-stylesheets-and-scripts-persistent-in-export-folder/11508/4 "2024-07-11T09:04:55Z")

</div>

This topic has arisen a few times in the past. Bootstrap Studio does not remove files from your export folder, because it will lead to lost work. You can achieve this with an export script. Learn more [here](https://forum.bootstrapstudio.io/t/feature-request-export-clean-folder/9979/10).

---

<div class="post-metadata">

**Author:** ![GregoryAM](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/gregoryam/32/5101_2.png) [@GregoryAM](https://forum.bootstrapstudio.io/u/GregoryAM)\
**Post date:** [July 11, 2024, 1:19pm UTC](https://forum.bootstrapstudio.io/t/exported-pages-images-stylesheets-and-scripts-persistent-in-export-folder/11508/5 "2024-07-11T13:19:35Z")

</div>

Thank you @martin and @printninja.

I was at work when I saw the replies, and I appreciate it.
