docstr: Delete a file.
  
  Args:
    extra_headers: Send extra headers
  
    extra_query: Add additional query parameters to the request
  
    extra_body: Add additional JSON properties to the request
  
    timeout: Override the client-level default timeout for this request, in seconds
docstr_tok: ["Delete","a","file",".","Args",":","extra_headers",":","Send","extra","headers","extra_query",":","Add","additional","query","parameters","to","the","request","extra_body",":","Add","additional","JSON","properties","to","the","request","timeout",":","Override","the","client-level","default","timeout","for","this","request",",","in","seconds"]
code: def delete(
      self,
      file_id: str,
      *,
      # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
      # The extra values given here take precedence over values defined on the client or passed to this method.
      extra_headers: Headers | None = None,
      extra_query: Query | None = None,
      extra_body: Body | None = None,
      timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
  ) -> FileDeleted:
      """
      Delete a file.
  
      Args:
        extra_headers: Send extra headers
  
        extra_query: Add additional query parameters to the request
  
        extra_body: Add additional JSON properties to the request
  
        timeout: Override the client-level default timeout for this request, in seconds
      """
      if not file_id:
          raise ValueError(
              f"Expected a non-empty value for `file_id` but received {file_id!r}"
          )
      return self._delete(
          f"/files/{file_id}",
          options=make_request_options(
              extra_headers=extra_headers,
              extra_query=extra_query,
              extra_body=extra_body,
              timeout=timeout,
          ),
          cast_to=FileDeleted,
      )
  
imports: from __future__ import annotations
  import time
  import typing_extensions
  from typing import Mapping, cast
  from typing_extensions import Literal
  import httpx
  from ..None import _legacy_response
  from ..types import FileObject, FileDeleted, file_list_params, file_create_params
  from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
  from .._utils import extract_files, maybe_transform, deepcopy_minimal
  from .._compat import cached_property
  from .._resource import SyncAPIResource, AsyncAPIResource
  from .._response import StreamedBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, to_streamed_response_wrapper, async_to_streamed_response_wrapper, to_custom_streamed_response_wrapper, async_to_custom_streamed_response_wrapper
  from ..pagination import SyncPage, AsyncPage
  from .._base_client import AsyncPaginator, make_request_options
label_desc: Use image node_id 6 for calling the Files obj's underlying member method code with example usage: obj.delete(file_id) and returns: self