Remove media and frontend before copying files