For this I copied the logic from one of these existing functions (I think it was alDeleteBuffers). Looks like I missed off the -1, whoops!