Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/geekcomputers/Python
/ delete_course
Function
delete_course
fastapi.py:47–49 ·
view source on GitHub ↗
(course_id: int)
Source
from the content-addressed store, hash-verified
45
# delete a course
46
@app.delete(
"/courses/{course_id}"
)
47
def
delete_course(course_id: int):
48
fakedb.pop(course_id - 1)
49
return
{
"task"
:
"deletion successful"
}
Callers
nothing calls this directly
Calls
1
pop
Method · 0.45
Tested by
no test coverage detected