Add delete metadata support to rest