Fix for api.py

Now understands doc name with '/' in it.
Also stop updating docs to be deleted.