diff --git a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/CGI.java b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/CGI.java
index 9236825cc009..6454540fe358 100644
--- a/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/CGI.java
+++ b/jetty-servlets/src/main/java/org/eclipse/jetty/servlets/CGI.java
@@ -67,7 +67,10 @@
*
ignoreExitState
* If true then do not act on a non-zero exec exit status")
*
+ *
+ * @deprecated do not use, no replacement, will be removed in a future release.
*/
+@Deprecated
public class CGI extends HttpServlet
{
private static final long serialVersionUID = -6182088932884791074L;
diff --git a/tests/test-webapps/test-jetty-webapp/src/main/webapp/WEB-INF/web.xml b/tests/test-webapps/test-jetty-webapp/src/main/webapp/WEB-INF/web.xml
index 05e4f1d4f6f7..ef7e27930b98 100644
--- a/tests/test-webapps/test-jetty-webapp/src/main/webapp/WEB-INF/web.xml
+++ b/tests/test-webapps/test-jetty-webapp/src/main/webapp/WEB-INF/web.xml
@@ -121,18 +121,6 @@
/dispatch/*
-
- CGI
- org.eclipse.jetty.servlets.CGI
- 1
- true
-
-
-
- CGI
- /cgi-bin/*
-
-
Chat
com.acme.ChatServlet