How to cancel a scheduled push programatically?

Hi, I have been looking everywhere about how to cancel a push message all over the internet, but it seems that the only way is via web consoles from push providers. I have seen that every push has its own MessageId so I´m wondering if there´s a way to cancel those messages by a request to a URL or something like that. Thanks.