diff --git a/service/policy/unsafe/unsafe.go b/service/policy/unsafe/unsafe.go index 1cc77877a..5b5be02be 100644 --- a/service/policy/unsafe/unsafe.go +++ b/service/policy/unsafe/unsafe.go @@ -138,11 +138,6 @@ func (s *UnsafeService) DeleteAttribute(ctx context.Context, req *unsafe.DeleteA return nil, db.StatusifyError(err, db.ErrTextGetRetrievalFailed, slog.String("id", req.GetId())) } - // TODO: move this down into db call - if existing.GetFqn() != req.GetFqn() { - return nil, db.StatusifyError(db.ErrNotFound, db.ErrTextGetRetrievalFailed, slog.String("id", req.GetId()), slog.String("fqn", req.GetFqn())) - } - deleted, err := s.dbClient.UnsafeDeleteAttribute(ctx, existing, req.GetFqn()) if err != nil { return nil, db.StatusifyError(err, db.ErrTextDeletionFailed, slog.String("id", req.GetId()))