diff --git a/meta/recipes-devtools/python/python3-sphinx_9.2.0.bb b/meta/recipes-devtools/python/python3-sphinx_9.2.0.bb
index e54b35ca68..fde0777022 100644
--- a/meta/recipes-devtools/python/python3-sphinx_9.2.0.bb
+++ b/meta/recipes-devtools/python/python3-sphinx_9.2.0.bb
@@ -12,7 +12,7 @@ inherit python_flit_core pypi
 
 do_install:append () {
 	# The cache format of "{None, 'en', 'ja'}" doesn't seem to be consistent (dict ordering?)
-	rm ${D}${libdir}/${PYTHON_DIR}/site-packages/sphinx/writers/__pycache__/*latex*
+	rm -f ${D}${libdir}/${PYTHON_DIR}/site-packages/sphinx/writers/__pycache__/*latex*
 }
 
 RDEPENDS:${PN} = "\
