Jump to content

Deleting pages with repeater fields


thomas
 Share

Recommended Posts

Hello,

when I delete a page with repeater fields, the fields data stays in the DB. Is there a way to delete these or a way to find out which data in the "pages" table is from repeaters? I added and deleted about 4000 pages via a script and now my "pages" table is a mess ...

Thanks,

thomas

Link to comment
Share on other sites

What version of ProcessWire? Also, what method did you use to delete the page? Are you sure that your deleted page isn't still in the trash? I just tried to duplicate here, but so far can't. When I delete a page that has a repeater on it, the items that accompany the repeater get deleted. The method I used was to delete the page from the page editor, then go and empty the trash. You can observe if the pages are still there by browsing the page tree to Admin > Repeaters > [repeater field name] > [page name]

Link to comment
Share on other sites

Hi Ryan,

it's the latest stable and I deleted the pages using the api. I didn't know I could find the repeaters in the admin so I'll check that. The "pages" table in my DB now holds over 2000 pages and I only have a handful of pages in the admin ...

Thanks,

thomas

Link to comment
Share on other sites

What is the API code used? Just trying to get a test case I can reproduce.

For the extra pages you have in the DB, I would locate them in your Repeaters structure (in the admin) and drag those not needed into the trash. This should provide an easy way to prune out stuff in large quantities without spending much time.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...