When to delete a pointer?

Of course pointers to primitive types are useful even if you don’t dynamically allocate memory.
That being said if you plan on doing a dynamic array using your pointer I’d recommend you use the TArray class