RQL Query for listing details of deleted pages in Recycle bin

32 views
Skip to first unread message

Chandrakanth Ramireddy

unread,
Feb 18, 2010, 4:15:09 AM2/18/10
to RedDot CMS Users

Hi,

We are trying to permanently delete a particular content class deleted
instances from recycle bin.

As there is no direct way to do this we thought using RQL for this
purpose.

But could not find a RQL query which lists and deleted all the deleted
instances of a content class.

Please share the query if someone has tried this already.

Thanks
Chandrakanth Ramireddy

kimdezen

unread,
Feb 18, 2010, 6:24:42 PM2/18/10
to RedDot CMS Users
Hi Chandrakanth,

Check out 'Extended Page Search' query in the RQL manual.

The following query will return back a list of pages based on a
specific Content Class that are within the recycle bin.

<IODATA sessionkey="[!key!]">
<PAGE action="xsearch" orderby="headline" orderdirection="ASC"
pagesize="10" maxhits="100" >
<SEARCHITEMS>
<SEARCHITEM key="specialpages" value="recyclebin" />
<SEARCHITEM key="contentclassguid" value="CONTENTCLASSGUIDHERE"
operator="eq" />
</SEARCHITEMS>
</PAGE>
</IODATA>

Then you will be able to delete each page using this RQL query:

<IODATA loginguid="[!guid_login!]" sessionkey="[!key!]">
<PAGE action="delete" guid="[!guid_page!]"/>
</IODATA>


Good luck!

Kim


On Feb 18, 8:15 pm, Chandrakanth Ramireddy <chandra.1...@gmail.com>
wrote:

Chandrakanth Ramireddy

unread,
Feb 22, 2010, 10:08:28 AM2/22/10
to RedDot CMS Users
Thank you Kim.. It worked :)

kimdezen

unread,
Feb 23, 2010, 2:34:15 AM2/23/10
to RedDot CMS Users
Awesome town!

On Feb 23, 2:08 am, Chandrakanth Ramireddy <chandra.1...@gmail.com>
wrote:

Reply all
Reply to author
Forward
0 new messages