Thanks Darrell for sending out this message throught grassp-list. His way is an alternative. I have solved the problem using the grass function D_remove_window(). But I think the deleting an existing frame should be added to d.frame so users can interactively delete a defined frame. --Xin