To delete a layer, use the command render/remove_layer:
svc=render/remove_layer¶ms={"layerName":<text>}
{} /* empty object if execution successful, if not - error code */