diff --git a/docs/tutorial/fastapi/delete.md b/docs/tutorial/fastapi/delete.md index 87144cc08d..3a850c72dd 100644 --- a/docs/tutorial/fastapi/delete.md +++ b/docs/tutorial/fastapi/delete.md @@ -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: