Developer Forum »
How to delete inner contents?
3 posts

I have a node (incSubscr) with a property of type inner content.

I am trying to delete inner contents like this:

TemporaryUser tmpUser = tmpUserlist.Find(x => .Email.Equals(txtEmailPrivate.Text));

if (tmpUser != null)

{

  incSubscr.Users.Delete(tmpUser.ContentId);

  incSubscr.UpdateChanges();


But this results in empty objects (screenshot1).

I have also tried this:

incSubscr.Users.GetAll().RemoveAll(x => x.Email.Equals(""));

But this gives the same result.

Attachments
3 posts

This is the correct way to delete inner contents. 

1