Check parent during deletion #884