+
+ Before you can archive a project, you must first archive all the
+ feature flags associated with it
+ {isEnterprise() && automatedActionsEnabled
+ ? ' and disable all actions that are in it'
+ : ''}
+ .
+
+ 0}
+ show={
+
+ Currently there {featureCount <= 1 ? 'is' : 'are'}{' '}
+
+ {featureCount} active feature{' '}
+ {featureCount === 1 ? 'flag' : 'flags'}.
+
+
+ }
+ />
+ 0
+ }
+ show={
+
+ Currently there {actionsCount <= 1 ? 'is' : 'are'}{' '}
+
+ {actionsCount} enabled{' '}
+ {actionsCount === 1 ? 'action' : 'actions'}.
+
+
+ }
+ />
+
+ 0}
+ projectId={projectId}
+ onClick={() => {
+ setShowArchiveDialog(true);
+ }}
+ tooltipProps={{
+ title: 'Archive project',
+ }}
+ data-loading
+ >
+ Archive project
+
+
+ {
+ setShowArchiveDialog(false);
+ }}
+ onSuccess={() => {
+ navigate('/projects');
+ }}
+ />
+
+ );
+};
diff --git a/frontend/src/component/project/Project/ProjectSettings/Settings/EditProject/ArchiveProjectForm.tsx b/frontend/src/component/project/Project/ProjectSettings/Settings/EditProject/ArchiveProjectForm.tsx
new file mode 100644
index 0000000000..6cf9116547
--- /dev/null
+++ b/frontend/src/component/project/Project/ProjectSettings/Settings/EditProject/ArchiveProjectForm.tsx
@@ -0,0 +1,43 @@
+import FormTemplate from 'component/common/FormTemplate/FormTemplate';
+import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
+import useProjectApi from 'hooks/api/actions/useProjectApi/useProjectApi';
+import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
+import { styled } from '@mui/material';
+import { ArchiveProject } from '../ArchiveProject';
+
+const StyledContainer = styled('div')(({ theme }) => ({
+ borderRadius: theme.spacing(2),
+ overflow: 'hidden',
+}));
+
+interface IDeleteProjectForm {
+ featureCount: number;
+}
+export const ArchiveProjectForm = ({ featureCount }: IDeleteProjectForm) => {
+ const id = useRequiredPathParam('projectId');
+ const { uiConfig } = useUiConfig();
+ const { loading } = useProjectApi();
+ const formatProjectArchiveApiCode = () => {
+ return `curl --location --request DELETE '${uiConfig.unleashUrl}/api/admin/projects/${id}/archive' \\
+--header 'Authorization: INSERT_API_KEY' '`;
+ };
+
+ return (
+