Fix for api.py

Now understands doc name with '/' in it.
Also stop updating docs to be deleted.
correct, might as well remove this line.