removes the structure with the given index from the list of structures contained in caps.
Index of the structure to remove
removes the structure with the given index from the list of structures contained in caps.