add removeKernel method to remove kernels from the current set