Remove a loaded template after a refresh