Fixed route for media deletion, refs #1517