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