diff --git a/synapse/handlers/admin.py b/synapse/handlers/admin.py
index 5ff02c12bfa0dea9d106c10e52be449110eea76c..e8a651e231b886fc5f17241648912d35a489a20a 100644
--- a/synapse/handlers/admin.py
+++ b/synapse/handlers/admin.py
@@ -14,10 +14,6 @@
 # limitations under the License.
 
 import logging
-import os
-import tempfile
-
-from canonicaljson import json
 
 from twisted.internet import defer