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
  65dac939_94f8_a0b5_8298_1d86bedb31a1["delete()"]
  3224f719_8046_78c8_59e1_47301a46ddd4["AsyncAPIClient"]
  65dac939_94f8_a0b5_8298_1d86bedb31a1 -->|defined in| 3224f719_8046_78c8_59e1_47301a46ddd4
  4e74c968_63fc_ca6c_ccf4_c01326e7060e["construct()"]
  65dac939_94f8_a0b5_8298_1d86bedb31a1 -->|calls| 4e74c968_63fc_ca6c_ccf4_c01326e7060e
  c21c2971_d83f_0afc_9811_0642b34cfcd3["request()"]
  65dac939_94f8_a0b5_8298_1d86bedb31a1 -->|calls| c21c2971_d83f_0afc_9811_0642b34cfcd3
  style 65dac939_94f8_a0b5_8298_1d86bedb31a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/_base_client.py lines 2051–2070

    async def delete(
        self,
        path: str,
        *,
        cast_to: Type[ResponseT],
        body: Body | None = None,
        content: AsyncBinaryTypes | 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 await 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 2051.
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