ElggEntity::deleteIcon PHP Method

deleteIcon() public method

Removes all icon files and metadata for the passed type of icon.
public deleteIcon ( string $type = 'icon' ) : boolean
$type string The name of the icon. e.g., 'icon', 'cover_photo'
return boolean
    public function deleteIcon($type = 'icon')
    {
        return _elgg_services()->iconService->deleteIcon($this, $type);
    }