From docs:
"If deleting recursively, this bypasses ownership of items contained by the entity.
That means that if the container_guid = $this->guid, the item will be deleted regardless of who owns it."
Look at this.
An example of how to do this in your class.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.