title: User account delete in django's rest
body: <p>I want create view which can deactivation user's account. when i create view and send delete request i have error - &gt; <strong>&quot;detail&quot;: &quot;You do not have permission to perform this action.&quot;</strong>. i have authenticated permissionn but i am login in my account. i also use APIview</p>
  <p>this is code -&gt;</p>
  <pre><code>class DeleteAccount(generics.RetrieveUpdateDestroyAPIView):
      serializer_class = UserSerializer
      permission_classes = [permissions.IsAuthenticated]
  
  
      def delete(self, request, *args, **kwargs):
          user=self.request.user
          user.delete()
  
          return Response({&quot;result&quot;:&quot;user delete&quot;})
  </code></pre>