i though you only used the delete keyword when you use new?
That's correct, yes. This doesn't need to be done in the above examples because we haven't allocated any memory by using the new operator.
The reason I mentioned it is because it's probably one of the forefront points concerning the safe use of pointers and memory. Dangling pointers and memory leaks are probably quick common pitfalls for people when using pointers.