code: def delete(self, request, id):
          
          if not id:
              # can't delete the whole container
              raise errors.MethodNotAllowed()
          try:
              models.User.objects.get(pk=id).delete()
          except models.User.DoesNotExist:
              # we never had it, so it's definitely deleted
              pass
docs: Delete a single user.