Jump to content

Removing reviews


Christopher Ambler

Recommended Posts

Given the ID of a listing (this is an "everywhere" listing, so I have the component name and the ID), which function do I want to call to delete all reviews properly, so that I don't leave behind any cruft in the database?

 

That is, I have lots of reviews on images in my gallery component, but if a user deletes an image, I need to call in and remove those reviews or they'll continue to live in the database, orphaned.

 

I presume there's code for this?

Link to comment
×
×
  • Create New...