ref(sampling): Remove error rules code - backend - [TET-103]
diff --git a/src/sentry/api/endpoints/project_details.py b/src/sentry/api/endpoints/project_details.py
index daf5da497c282..ed9164dda5539 100644
--- a/src/sentry/api/endpoints/project_details.py
+++ b/src/sentry/api/endpoints/project_details.py
@@ -441,12 +441,6 @@ def put(self, request: Request, project) -> Response:
             "organizations:filters-and-sampling", project.organization, actor=request.user
         )
 
-        allow_dynamic_sampling_error_rules = features.has(
-            "organizations:filters-and-sampling-error-rules",
-            project.organization,
-            actor=request.user,
-        )
-
         if not allow_dynamic_sampling and result.get("dynamicSampling"):
             # trying to set dynamic sampling with feature disabled
             return Response(
@@ -616,19 +610,6 @@ def put(self, request: Request, project) -> Response:
 
         if "dynamicSampling" in result:
             raw_dynamic_sampling = result["dynamicSampling"]
-            if (
-                not allow_dynamic_sampling_error_rules
-                and self._dynamic_sampling_contains_error_rule(raw_dynamic_sampling)
-            ):
-                return Response(
-                    {
-                        "detail": [
-                            "Dynamic Sampling only accepts rules of type transaction or trace"
-                        ]
-                    },
-                    status=400,
-                )
-
             fixed_rules = self._fix_rule_ids(project, raw_dynamic_sampling)
             project.update_option("sentry:dynamic_sampling", fixed_rules)
 
diff --git a/src/sentry/conf/server.py b/src/sentry/conf/server.py
index fe27a36c06a3f..fd07bdc5bcef7 100644
--- a/src/sentry/conf/server.py
+++ b/src/sentry/conf/server.py
@@ -951,8 +951,6 @@ def create_partitioned_queues(name):
     "organizations:event-attachments": True,
     # Enable Filters & Sampling in the org settings
     "organizations:filters-and-sampling": False,
-    # Enable Dynamic Sampling errors in the org settings
-    "organizations:filters-and-sampling-error-rules": False,
     # Allow organizations to configure all symbol sources.
     "organizations:symbol-sources": True,
     # Allow organizations to configure custom external symbol sources.
diff --git a/src/sentry/features/__init__.py b/src/sentry/features/__init__.py
index cf748cfcbb4bd..d24d1d3fdfd2a 100644
--- a/src/sentry/features/__init__.py
+++ b/src/sentry/features/__init__.py
@@ -70,7 +70,6 @@
 default_manager.add("organizations:duplicate-alert-rule", OrganizationFeature, True)
 default_manager.add("organizations:enterprise-perf", OrganizationFeature)
 default_manager.add("organizations:filters-and-sampling", OrganizationFeature, True)
-default_manager.add("organizations:filters-and-sampling-error-rules", OrganizationFeature, True)
 default_manager.add("organizations:grouping-stacktrace-ui", OrganizationFeature, True)
 default_manager.add("organizations:grouping-title-ui", OrganizationFeature, True)
 default_manager.add("organizations:grouping-tree-ui", OrganizationFeature, True)

continuation of PR https://github.com/getsentry/sentry/pull/35003