SDL is written in C so it probably uses malloc/calloc to allocate the memory so if anything you should use free to delete it, but don't do that! C doesn't have destructors. That's why they provide you with a special function for destroying the window so that they can run additional code to clean up everything properly.