Only call advice in delete-directory when called interactively.