# About draft pages handling in Collaborative Editing

**URL:** <https://community.developer.atlassian.com/t/about-draft-pages-handling-in-collaborative-editing/30043>\
**Category:** Confluence Server\
**Created:** [June 24, 2019, 11:39am UTC](https://community.developer.atlassian.com/t/about-draft-pages-handling-in-collaborative-editing/30043 "2019-06-24T11:39:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PriyaKatruwar](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@PriyaKatruwar](https://community.developer.atlassian.com/u/PriyaKatruwar)\
**Post date:** [June 24, 2019, 11:39am UTC](https://community.developer.atlassian.com/t/about-draft-pages-handling-in-collaborative-editing/30043/1 "2019-06-24T11:39:57Z")

</div>

We have a job as part of a custom add-on that moves pages from one space to another.  
We are using transaction and pageManager.movePageAsChild(currentPage, newParentPageInOtherSpace).  
We`ve noticed however page is moved to another space, in old space some kind of a “draft” page persists.  
We are using this SQL to fing that “drafts”  
select \*  
from CONTENT c  
where c.spaceid=487096324  
and c.content\_status=‘draft’ and c.prevver in (  
select contentid from CONTENT  
where c.prevver=contentid and spaceid!=c.spaceid  
);  
Where c.spaceid=487096324 is id of old space.  
We suppose this draft is connected with Collaborative Editing feature and temp data is stored there until page is published.  
We are asking because we have an issue while deleting old space, it fails until these “drafts” are removed from db.  
Please give us an advice what should we do to move pages the right way.  
Because deleting content from db directly is not the right way to solve this.

---

<div class="post-metadata">

**Author:** ![PriyaKatruwar](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@PriyaKatruwar](https://community.developer.atlassian.com/u/PriyaKatruwar)\
**Post date:** [July 18, 2019, 3:27pm UTC](https://community.developer.atlassian.com/t/about-draft-pages-handling-in-collaborative-editing/30043/2 "2019-07-18T15:27:55Z")

</div>

Any update on this??
