To delete all layers, use the command render/remove_all_layers:
svc=render/remove_all_layers¶ms={}
{} /* empty object if execution successful, if not - error code */