Deleting SubAlbum and all pictures within using the API

jaehdawg

Joined: 2007-06-20
Posts: 1
Posted: Wed, 2007-06-20 22:16

I am trying to find a way to delete a sub album and all items inside using the API.

deleteUserItems() is too much, it deletes all pictures and all albums.
deleteEntityById() would seem like the correct method, but it doesn't seem to work

i tried..

$ret = GalleryCoreApi::deleteEntityById($itemId);

where $itemID is the subalbum ID.

Please Help

Matt

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2007-07-18 15:25

that looks right.. if it didn't work, what was the error? ( print $ret->getAsHtml(); )