Black hole register in ex mode not working

When I try to use the black hole register in ex mode (which I use in vim), with the command :%d_, I am given the feedback of “Unknown Command”, when it should delete the whole buffer into the black hole register. For a reason I’m not sure of :%d _ with a space seems to work.