diff --git a/doc/classes/ScriptEditor.xml b/doc/classes/ScriptEditor.xml
index 67a2af29321..b6d07517359 100644
--- a/doc/classes/ScriptEditor.xml
+++ b/doc/classes/ScriptEditor.xml
@@ -10,6 +10,14 @@
+
+
+
+
+ Removes the documentation for the given [param script].
+ [b]Note:[/b] This should be called whenever the script is changed to keep the open documentation state up to date.
+
+
@@ -103,7 +111,7 @@
- Updates the documentation for the given [param script] if the script's documentation is currently open.
+ Updates the documentation for the given [param script].
[b]Note:[/b] This should be called whenever the script is changed to keep the open documentation state up to date.
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index d0c3a9d9aa5..e3d8a292930 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -4153,6 +4153,7 @@ void ScriptEditor::_bind_methods() {
ClassDB::bind_method(D_METHOD("goto_help", "topic"), &ScriptEditor::goto_help);
ClassDB::bind_method(D_METHOD("update_docs_from_script", "script"), &ScriptEditor::update_docs_from_script);
+ ClassDB::bind_method(D_METHOD("clear_docs_from_script", "script"), &ScriptEditor::clear_docs_from_script);
ADD_SIGNAL(MethodInfo("editor_script_changed", PropertyInfo(Variant::OBJECT, "script", PROPERTY_HINT_RESOURCE_TYPE, "Script")));
ADD_SIGNAL(MethodInfo("script_close", PropertyInfo(Variant::OBJECT, "script", PROPERTY_HINT_RESOURCE_TYPE, "Script")));