Fix trigger to make use of partial pyramid indices on delete