To remove the outline from a rectangle, you can set the border or stroke property to "none" or "transparent". This can be done using CSS if you are working on a website or using the formatting options in a design software like Adobe Illustrator or Photoshop.