Currently there are 2 containers which can hold the list of modules, ModuleList 1 and Sequential 1. Both of them have different use cases. Neither of them supports deleting the contained list of modules. If the requirement is to delete the list of contained modules, a crude solution is to free the current ModuleList and create a new one.
If there is any specific requirement / usecase we could discuss it in the community.