In fact, there is a process to request complete removal of data, but it involves sending an email that will be reviewed by github staff: https://docs.github.com/en/site-policy/content-removal-polic...
On the other hand, once an API key or password has been published somewhere, you should rotate it anyway.