There are a couple of options. If you are running the Developer version, then simply change the schema and publish it, it automatically purges the database.
A more normal way to do it is to go into Graph Studio -> Load Data and look for the waste bin icon at the top of the screen.
I don't think there is a REST endpoint for that function. I'll have a look and get back here if I find it.
Regards
Richard Henderson