Cylinder cutting extremes

I am designing a mold .. Is like this

How do I cut both extremes in the cylinder?

... something like this:

SolidworksPlastics And Mold Design