fix for bug #1: can delete document if directory and/or pad is missing
fix for #4: confirmation before deleting document