# Remove modal data when closed

**URL:** <https://forum.ionicframework.com/t/remove-modal-data-when-closed/5316>\
**Category:** ionic-v1\
**Created:** [June 6, 2014, 8:07pm UTC](https://forum.ionicframework.com/t/remove-modal-data-when-closed/5316 "2014-06-06T20:07:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericgeurts](https://avatars.discourse-cdn.com/v4/letter/e/a183cd/32.png) [@ericgeurts](https://forum.ionicframework.com/u/ericgeurts)\
**Post date:** [June 6, 2014, 8:07pm UTC](https://forum.ionicframework.com/t/remove-modal-data-when-closed/5316/1 "2014-06-06T20:07:23Z")

</div>

Hi,  
How can I remove the data inside a modal when I hide it?  
Now when I re-open the modal the data is still there.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [June 6, 2014, 8:59pm UTC](https://forum.ionicframework.com/t/remove-modal-data-when-closed/5316/2 "2014-06-06T20:59:48Z")

</div>

Take a look at this post,

> **[Remove modal from dom](http://forum.ionicframework.com/t/remove-modal-from-dom/4676)**
>
> hey everybody, i know this topic is not new but i still have a problem to completely remove the opened modal from dom. if i change to a complete other side it does but if i want to close the modal i currently have open without changing somewhere...

---

<div class="post-metadata">

**Author:** ![TJL](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tjl/32/96319_2.png) [@TJL](https://forum.ionicframework.com/u/TJL)\
**Post date:** [February 16, 2016, 11:53pm UTC](https://forum.ionicframework.com/t/remove-modal-data-when-closed/5316/3 "2016-02-16T23:53:05Z")

</div>

Was never resolved. Would like to see a snippet of what could be an the solution.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [February 24, 2016, 4:50pm UTC](https://forum.ionicframework.com/t/remove-modal-data-when-closed/5316/4 "2016-02-24T16:50:12Z")

</div>

Yes, you remove modals form the DOM

[http://ionicframework.com/docs/api/service/$ionicModal/](http://ionicframework.com/docs/api/service/%24ionicModal/)
