The following code can remove the trailing dot from all theorem environments.
\makeatletter
\xpatchcmd{\@thm}{\thm@headpunct{.}}{\thm@headpunct{}}{}{}
\makeatother
See Remove dot after theorem with amsthm and hyperref
The issue here is a bit different. Sometimes we only need to remove the dot from certain theorem environments, such as definitions and the text within the "sta" environment below.
\documentclass{article}
\usepackage{amsthm}
\usepackage{xpatch}
\newtheorem{theorem}{Theorem}
\newtheorem{definition}{Definition}
\newtheorem{sta}{\normalfont}
\renewcommand{\thesta}{(\arabic{sta})\unskip}
\makeatletter
\xpatchcmd{@thm}{\thm@headpunct{.}}{\thm@headpunct{}}{}{}
\makeatother
\begin{document}
\begin{definition}
A {\it cycle} in a graph is a non-empty trail in which only the first and last vertices are equal.
\end{definition}
\begin{theorem}
An undirected graph is bipartite if and only if it does not contain an odd cycle.
\end{theorem}
First, we note that:
\begin{sta}\label{seesall}
Every bipartite graph contains no odd cycles.
\end{sta}
This prove \ref{seesall}.
\end{document}



{\it cycle}. Use\emph{cycle}as it adjusts it self if the context is italic and includes italic correction (AFAIR). – daleif Jan 08 '24 at 14:33