diff --git a/nomad/files.py b/nomad/files.py
index 5e4c2fec759254a4e020c77bb73951c097d573d1..f9bd24966b9fb1617f7a073f4a1531183831f1ac 100644
--- a/nomad/files.py
+++ b/nomad/files.py
@@ -48,7 +48,6 @@ from contextlib import contextmanager
 import gzip
 import io
 import shutil
-import logging
 
 from nomad import config, utils
 
diff --git a/nomad/processing/data.py b/nomad/processing/data.py
index f19ea082f16c93bb3fb712ebc476a90c82d4d19c..181ddb6c026256232a6f7290b6ca41be0d0ffeee 100644
--- a/nomad/processing/data.py
+++ b/nomad/processing/data.py
@@ -32,7 +32,6 @@ import logging
 import base64
 import time
 from structlog import wrap_logger
-from structlog.processors import StackInfoRenderer, format_exc_info, JSONRenderer
 
 from nomad import config, utils
 from nomad.files import UploadFile, ArchiveFile, ArchiveLogFile
diff --git a/tests/test_files.py b/tests/test_files.py
index 2769a310a64adbc2eb0a071f85851b4aad173760..efb7eb76e9da51eccce0e4ccf604553fa6cdd946 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -15,10 +15,9 @@
 import pytest
 import json
 import shutil
-import logging
 
 from nomad.files import Objects, ArchiveFile, UploadFile, ArchiveLogFile
-from nomad import config, utils
+from nomad import config
 
 # example_file uses an artificial parser for faster test execution, can also be
 # changed to examples_vasp.zip for using vasp parser