def delete(
        cls,
        path: str,
        lookup_param: str,
        status_code: int = status.HTTP_204_NO_CONTENT,
        url_name: t.Optional[str] = None,
        description: t.Optional[str] = None,
        object_getter: t.Optional[t.Callable[..., DjangoModel]] = None,
        custom_handler: t.Optional[t.Callable[..., t.Any]] = None,
        operation_id: t.Optional[str] = None,
        summary: t.Optional[str] = "Delete An Item",
        tags: t.Optional[t.List[str]] = None,
        deprecated: t.Optional[bool] = None,
        by_alias: bool = False,
        exclude_unset: bool = False,
        exclude_defaults: bool = False,
        exclude_none: bool = False,
        include_in_schema: bool = True,
        permissions: t.Optional[
            t.List[t.Union[t.Type[BasePermission], BasePermission, t.Any]]
        ] = None,
        openapi_extra: t.Optional[t.Dict[str, t.Any]] = None,
    ) -> ModelEndpointFunction:
        """
        Creates a DELETE Action to list Items
        """

        def _setup(model_controller_type: t.Type["ModelControllerBase"]) -> t.Callable:
            api_controller = model_controller_type.get_api_controller()
            working_path = cls._clean_path(path)
            delete_item = _path_resolver(
                path,
                cls._delete_handler(
                    object_getter=object_getter,
                    lookup_param=lookup_param,
                    custom_handler=custom_handler,
                    status_code=status_code,
                ),
                prefix_route_params=api_controller.prefix_route_params,
            )
            return route.delete(
                working_path,
                url_name=url_name,
                response={status_code: str},
                description=description,
                operation_id=operation_id,
                summary=summary,
                tags=tags,
                deprecated=deprecated,
                by_alias=by_alias,
                exclude_unset=exclude_unset,
                exclude_defaults=exclude_defaults,
                exclude_none=exclude_none,
                include_in_schema=include_in_schema,
                permissions=permissions,
                openapi_extra=openapi_extra,
            )(delete_item)

        return ModelEndpointFunction(_setup)

        Creates a DELETE Action to list Items
        
ninja_extra/controllers/model/endpoints.py