I'm having disk-space problems and discovered, that a program I use produces quite large files, which then seemingly use up space, although they are "deleted".

So, how does this happen? And is it something I, as admin can do anything about, or is this something code-specific? Could I for example write a script, that deletes all the deleted files every now and then?
Thanks, Sven