Jump to content

heldercervantes

Members
  • Posts

    362
  • Joined

  • Last visited

  • Days Won

    11

Community Answers

  1. heldercervantes's post in Deleting media was marked as the answer   
    With a little help from another post from Ryan, I got this:
    $dir = $page->filesManager->path; $dit = new DirectoryIterator($dir); foreach($dit as $df) { unlink($df->getPathname()); } rmdir($dir); $pages->uncache($page); And away go all assets from said page.
×
×
  • Create New...