Home » Documentation » What is PeoplePods? » SDK Documentation » Object Definitions » Content Object » $Content->delete()

$Content->delete()

Deletes the content record, all comments, tags, flags, and files.

Any child documents of the deleted record will have their parent record set to null.

NOTE that this function currently does a hard, permanent delete on this data. In some future version of PeoplePods, this will be changed to do a soft-delete, leaving the data behind, but marking it as inactive.

By default, this function pays attention to the isEditable() function. However, you can override this by passing in a true variable. This should only be done in administrative settings.

$content->delete(true); // override isEditable.
  • Discuss This Document

No comments have been posted yet.

Download Download the latest version of PeoplePods!

0.667 Latest Version:
Release Notes

A free membership is required to download PeoplePods.

  Already Registered? Login

Recent Posts from Our Blog

Developer Preview Launch!

I am very excited to announce the launch of PeoplePods version 0.666, THE DEVELOPER PREVIEW! After tons of hacking, I have tweaked the last line of code, and I am finally ready for a wider audience...