remove end on mediaroot