Fix manual document deletion support

Signed-off-by: Jerome Flesch <jflesch@gmail.com>