LiveWhale CMS

Welcome, Guest Login

Support Center

Delete

Last Updated: Nov 25, 2015 10:41AM PST
$_LW->delete() allows for the full cascading deletion of the various data types.

Pages

Single page

$_LW->delete('pages',$id); 

Multiple pages

$pages = $_LW->dbo->query('select','livewhale_pages.id','livewhale_pages') -> 
  where("livewhale_pages.id like '%$path%'")->run();  
if ($pages->hasResults()) 
  while ($page=$pages->next())  
   $_LW->delete('pages',$page['id']); 

  • 1.4.3 deletes page and all page revisions.
  • 1.4.4 copies to trash then deletes all page revisions.
 

Blurbs

$_LW->delete('blurbs',$id);
 
eb8f96c071020d8b0923da726d6cab65@livewhale.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete?b_id=4256