Context missing in oneditcancel

I would like to call a REST endpoint in oneditcancel in order to clean-up resources in the backend (I created them via a button in this config-node). However, looks like I don't have access to any variables anymore (my this shows id only...)... do I miss something?