Can't reset required module cache

Hello. I’ve been having trouble trying to reset the cache of module scripts created using require(assetid). I’ve tried using a function to return the module table to no success. This post shows what I need.
Thank you.