Rounded rectangle

I made a rounded rectangle (A rectangle with round edges) But when i delete the background and only keep the shape. The background is still there when i save it as JPG. How do I keep the shape only?