Delete un-releated function and options.