hapus redirect function