[SPEC] Removed empty paths from close and delete index apis

Although the empty paths are still registered in the java RestActions, that is only to return a meaningful error in case the index is not provided.
Index/indices are now mandatory.
Remove unnecessary optimize call that destabelizes test