fix hook for delete
bugfix for shutil and markdown renderer