Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 1 addition & 63 deletions docs/tutorial/fastapi/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,69 +12,7 @@ We get a `hero_id` from the path parameter and verify if it exists, just as we d

And if we actually find a hero, we just delete it with the **session**.

//// tab | Python 3.10+

```Python hl_lines="3-11"
# Code above omitted 👆

{!./docs_src/tutorial/fastapi/delete/tutorial001_py310.py[ln:89-97]!}

# Code below omitted 👇
```

////

//// tab | Python 3.9+

```Python hl_lines="3-11"
# Code above omitted 👆

{!./docs_src/tutorial/fastapi/delete/tutorial001_py39.py[ln:91-99]!}

# Code below omitted 👇
```

////

//// tab | Python 3.7+

```Python hl_lines="3-11"
# Code above omitted 👆

{!./docs_src/tutorial/fastapi/delete/tutorial001.py[ln:91-99]!}

# Code below omitted 👇
```

////

/// details | 👀 Full file preview

//// tab | Python 3.10+

```Python
{!./docs_src/tutorial/fastapi/delete/tutorial001_py310.py!}
```

////

//// tab | Python 3.9+

```Python
{!./docs_src/tutorial/fastapi/delete/tutorial001_py39.py!}
```

////

//// tab | Python 3.7+

```Python
{!./docs_src/tutorial/fastapi/delete/tutorial001.py!}
```

////

///
{* ./docs_src/tutorial/fastapi/delete/tutorial001_py310.py ln[89:97] hl[3:11] *}

After deleting it successfully, we just return a response of:

Expand Down
Loading