      def delete(self, request, auth, unique_id):
          """Delete the highlighted snippet."""
          pathname = os.path.join(HIGHLIGHTED_CODE_DIR, unique_id)
          if not os.path.exists(pathname):
              return Resource(status.HTTP_404_NOT_FOUND)
          return os.remove(pathname)
  
 
</s> remove     def delete(self, request, auth, unique_id):
 </s> add     def delete(self, request, unique_id): </s> remove             return Resource(status.HTTP_404_NOT_FOUND)
 </s> add             return Response(status.HTTP_404_NOT_FOUND) </s> remove     def get(self, request, auth, unique_id):
 </s> add     def get(self, request, unique_id): </s> remove     allowed_methods = anon_allowed_methods = ('GET',)
 </s> add  </s> remove         return [method.upper() for method in self.http_method_names if hasattr(self, method)]
 </s> add         return [method.upper() for method in self.http_method_names if getattr(self, method, None)]
            return Response(status.HTTP_404_NOT_FOUND)
      def delete(self, request, auth, unique_id):
          """Delete the highlighted snippet."""
          pathname = os.path.join(HIGHLIGHTED_CODE_DIR, unique_id)
          if not os.path.exists(pathname):
            return Response(status.HTTP_404_NOT_FOUND)
          return os.remove(pathname)
  
keep keep keep keep replace keep keep
 Fix up tests and examples after refactoring 
examples/pygments_api/views.py