fix error reverting when rename fails
add support for deleting graphs