I am using api_channel_structure I want to correctly set up the uninstall function. To delete a channel I'm creating, I'm calling delete_channel. It requires a channel_id. Fine, but I only have a channel_name.
Is there an inbuilt function to get the id from name.. or is it stored in some session/object that I'm not aware of?
I need to get channel_id for uninstalling a module.