remove temp fg file after fg generation