linux-help-scripts rmmodrecursive.py Recursively rmmod(), extracting names of dependent modules from stderr of rmmod. Pass name of you module to rmmod() function. NEED: python3, subprocess. Tested on Ubuntu 20.04.