One possible usage of the particle ne is to replace prepositional phrases introduced by 'di'.
In the following example:
Hai dimenticato di fare i compiti? Sì, ne ho dimenticato.
Is there any problem replacing the prepositional phrase 'di fare i compiti' with 'ne'? How does it sound to native speakers?