     require('smc-hub/storage').activity(opts)
 
 console.log("activity()  -- makes activity the activity monitor object")
+
+global.delete_account = (email) ->
+    require('./smc-hub/rethink').rethinkdb
+        hosts:db_hosts
+        pool:1
+        cb: (err, db) ->
+            if err
+                done("FAIL -- #{err}")
+                return
+            db.mark_account_deleted
+                email_address: email
+                cb           : (err) ->
+                    if err
+                        done("FAIL -- #{err}")
+                    else
+                        done("SUCCESS!")
+console.log("delete_account 'email@foo.bar'  -- marks an account deleted")

# make the global variable s be the compute server
global.compute_server = () ->
    return require('smc-hub/compute-client').compute_server
        db_hosts:['db0']
        cb:(e,s)->
            global.s=s
console.log("compute_server() -- sets global variable s to compute server")

# make the global variable p be the project with given id and the global variable s be the compute server
global.proj = global.project = (id) ->
    require('smc-hub/compute-client').compute_server
        db_hosts: db_hosts
        cb:(e,s)->
            global.s=s
            s.project
