[hook] move delete es document in method and catch not found error [applied]