Thanks to the comment from @mr-mcwolf , setting the parameter max_age=0, the cookie "cookie1" can be removed as follows:
from fasthtml import common as fh
app = fh.FastHTML
@app.get("/removecookie1")
def getdbpools(req):
return fh.cookie(key='cookie1', value='', max_age=0)