class UserProfile(models.Model):
    user = models.OneToOneField(User, related_name='profile')
preferred_name = models.CharField(max_lengths=100)

def delete(self, *args, **kwargs):
    self.user.delete()
Delete related models with Django Rest Framework API