を忘れる

forget …

→ を
phrase Very common #512
forget … を marks the thing forgotten. When attached to a verb phrase in dictionary form, as in 返事を出すことを忘れる, it can mean “forget to do …”.
JA: 彼女はバスにバッグを忘れるほど不注意だった。
EN: She was so careless that she left her bag on the bus.

もう算数の教科書を忘れるんじゃないぞ。

Don't forget your math textbook again.

初恋を忘れることはないと言われている。

It is said that you never forget your first love.

なぜ自分のレシピを忘れる?

Why do you forget your own recipe?

— レミーのおいしいレストラン (2007)

寝るのを忘れるほどに

to the point of forgetting to sleep

— ライフ・イズ・ビューティフル (1997)

私は、あの親切な人たちを忘れることができない。

I can't forget those kind people.

彼はよく約束を忘れる。

He often forgets his promises.

“歴史を忘れる者は繰り返す…”

“Those who forget history are doomed to repeat it…”

— 28年後... 白骨の神殿 (2026)

めがねを忘れるなんて恥ずかしいことだ。

It's embarrassing to forget your glasses.