remove customTask and deviceHistoryData form