def remove_default_content(portal):
    """Remove default Plone contents
    """
    logger.info("*** Delete Default Content ***")

    # Get the list of object ids for portal
    object_ids = portal.objectIds()
    delete_ids = filter(lambda id: id in object_ids, CONTENTS_TO_DELETE)
    portal.manage_delObjects(ids=delete_ids)
def remove_default_content ( portal ) : logger . info ( "*** Delete Default Content ***" ) object_ids = portal . objectIds ( ) delete_ids = filter ( lambda id : id in object_ids , CONTENTS_TO_DELETE ) portal . manage_delObjects ( ids = delete_ids )
Remove default Plone contents