Flatten the curve means new infections, not total cases. Its primary purpose is to slow the rate of spread to avoid health services becoming overwhelmed.
See the graph at https://flattenthecurve.co.uk/ for an example.
You could pursue an elimination strategy after flattening the curve, but generally the approach has been slow things down and keep them manageable until a vaccine is available.