delete pdf  and display alert