Deleting textures

In games you make, you load textures.Is it possible to delete textures once you’ve loaded them?

Delete all links to the texture and save -> reload.