Doyou have delete behaviour in your domain model related to the deleted entity? This might be causing your problem.
If deleting one instance of your entity causes a lot of other objects to be deleted this may still cause memory issues.
E.g. In this domain model, if a LogNode has 100 Logs and each Log 100 LogLines.
CC.deleteAll will delete 1000 LogNodes at once, which results in 10.000.000 LogLines to be deleted.