We have a php code which delete user with something like this :
Code: Select all
$user = \GO\Base\Model\User::model()->findSingleByAttribute('username', $userName);
This code delete the user, but calendar, tasks, ... belong to the user is still present (see attachment). And the calendar has no more propriotary...
What function have I to call to delete this elements ?
Thak you for your help,