update confirm syntax for delete method

:confirm syntax is deprecated