OK. Add 'delete' case for hook_nodeapi(). See deletion in table nodeapi_example.
OK. Add case 'delete revision' to hook_nodeapi(). See revision vid deleted in database.