1. I couldn't go to school for some weeks.

2.I couldn't go to school some weeks.
============
Can we delete 'for' as in #2?

It depends on what you mean. "for several weeks" implies consecutive weeks. Without "for," it implies more random weeks, a week here, a week there.