added methods for deleting metadata to service and controller