diff --git a/integrations/gen_docs_integrations.py b/integrations/gen_docs_integrations.py
index 970fb663db..91d24be761 100644
--- a/integrations/gen_docs_integrations.py
+++ b/integrations/gen_docs_integrations.py
@@ -304,7 +304,7 @@ def make_symlinks(symlink_dict):
     """
     for element in symlink_dict:
         # Remove the README to prevent it being a normal file
-        Path.unlink(f'{element}/README.md')
+        Path(f'{element}/README.md').unlink()
         # and then make a symlink to the actual markdown
         Path(f'{element}/README.md').symlink_to(symlink_dict[element])