# Is garbage collection work for upload foleder as well?

**URL:** <https://discuss.ipfs.tech/t/is-garbage-collection-work-for-upload-foleder-as-well/334>\
**Category:** Help\
**Created:** [May 23, 2017, 12:07am UTC](https://discuss.ipfs.tech/t/is-garbage-collection-work-for-upload-foleder-as-well/334 "2017-05-23T00:07:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyingzumwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/flyingzumwalt/32/12_2.png) [@flyingzumwalt](https://discuss.ipfs.tech/u/flyingzumwalt)\
**Post date:** [May 23, 2017, 12:07am UTC](https://discuss.ipfs.tech/t/is-garbage-collection-work-for-upload-foleder-as-well/334/1 "2017-05-23T00:07:21Z")

</div>

_From @satyamakgec on Wed Mar 22 2017 06:10:34 GMT+0000 (UTC)_  
  
Hi Folks , I am new in ipfs . i am creating an application that push the folder over the ipfs . I am concern for the garbage collection that it may automatically delete my content on ipfs please give me a brief over view to manage the ipfs gc

Thanks   
  
_Copied from original issue: [Is garbage collection work for upload foleder as well ? · Issue #242 · ipfs-inactive/faq · GitHub](https://github.com/ipfs/faq/issues/242)_

---

<div class="post-metadata">

**Author:** ![flyingzumwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/flyingzumwalt/32/12_2.png) [@flyingzumwalt](https://discuss.ipfs.tech/u/flyingzumwalt)\
**Post date:** [May 23, 2017, 12:07am UTC](https://discuss.ipfs.tech/t/is-garbage-collection-work-for-upload-foleder-as-well/334/2 "2017-05-23T00:07:58Z")

</div>

_From @Kubuxu on Wed Mar 22 2017 10:47:37 GMT+0000 (UTC)_  
  
`ipfs add` has `--pin` option it is default to true so it pins added file/directory right away. Pinned files and directories won’t be removed by the GC.
