Removes the modal type dialog content.
@georgehrke sends correct payload for put but that breaks URL, check request.