To check the access token validity in general you can also use gh CLI. For me the https endpoints where disabled in my internal github.
gh auth login --hostname <enterprise.github> --with-token <<<"ghp_YOUR_TOKEN"
This worked easily. Delete unfortunately is not possible with CLI.