I can create a Sub-Account using the Canvas API using:
However, there doesn't seem to be a public API to use to delete that which was just created via the Canvas API. I would think it should just be:
I did see that there is a private POST endpoint that is used to delete a Sub-Account using the parameter "_method" with the value of "delete". However, you cannot call this with the API key, and I tried a lot of different ways to get this to work and I can't as its access token seems to change for each call.
Is there a public way to do this?
If not can Canvas developers please add it preferable in a RESTful way like the above suggested DELETE. I do have an open issue on GitHub regarding this and the fact that DELETEs that you do have don't seem to really delete things just hide or deactivate them, which is really just an update (aka PUT or PATCH).