Hi Asad,
You can use parameter LMDB_AUTO_DS_OVRWRT to manually assign or remove product instance. I don't think we can do it for Kernel files. Why Kernel file needs to be deleted, Can we generate a stack file without kernel File? I am not sure about it. Let see other experts advise.
Regards,
kartik