Hello,
Is there a way to programmatically delete a user account and have that user content assigned to "Anonymous" like the admin screen does it. We have tried the code below but that fails if the user is not an administrator. Any way to get around that? How is the reassignment done programmatically?
UsersDeleteOptions deleteOptions = new UsersDeleteOptions { Id = userId };
PublicApi.Users.Delete(deleteOptions);
Thanks,
Jean