Home / Function/ delete() — anthropic-sdk-python Function Reference

delete() — anthropic-sdk-python Function Reference

Architecture documentation for the delete() function in _base_client.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  51664634_6070_af12_f734_96526c0a04fa["delete()"]
  4b46ed95_ff71_ea5d_7534_6929dc929bdb["SyncAPIClient"]
  51664634_6070_af12_f734_96526c0a04fa -->|defined in| 4b46ed95_ff71_ea5d_7534_6929dc929bdb
  4e74c968_63fc_ca6c_ccf4_c01326e7060e["construct()"]
  51664634_6070_af12_f734_96526c0a04fa -->|calls| 4e74c968_63fc_ca6c_ccf4_c01326e7060e
  2cb1e2bf_1a02_d5ea_42a9_c0def162363a["request()"]
  51664634_6070_af12_f734_96526c0a04fa -->|calls| 2cb1e2bf_1a02_d5ea_42a9_c0def162363a
  style 51664634_6070_af12_f734_96526c0a04fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/_base_client.py lines 1418–1437

    def delete(
        self,
        path: str,
        *,
        cast_to: Type[ResponseT],
        body: Body | None = None,
        content: BinaryTypes | None = None,
        options: RequestOptions = {},
    ) -> ResponseT:
        if body is not None and content is not None:
            raise TypeError("Passing both `body` and `content` is not supported")
        if isinstance(body, bytes):
            warnings.warn(
                "Passing raw bytes as `body` is deprecated and will be removed in a future version. "
                "Please pass raw bytes via the `content` parameter instead.",
                DeprecationWarning,
                stacklevel=2,
            )
        opts = FinalRequestOptions.construct(method="delete", url=path, json_data=body, content=content, **options)
        return self.request(cast_to, opts)

Subdomains

Frequently Asked Questions

What does delete() do?
delete() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_base_client.py.
Where is delete() defined?
delete() is defined in src/anthropic/_base_client.py at line 1418.
What does delete() call?
delete() calls 2 function(s): construct, request.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free