Handle delete action