if self.api.plshell.GetPersons(self.api.plauth, record.get_pointer()):
self.api.plshell.DeletePerson(self.api.plauth, record.get_pointer())
elif type == "slice":
if self.api.plshell.GetPersons(self.api.plauth, record.get_pointer()):
self.api.plshell.DeletePerson(self.api.plauth, record.get_pointer())
elif type == "slice":