 module.exports = (compound) ->
     app = compound.app
-    
+
     compound.tools.database = ->
         {User, CozyInstance, Application} = compound.models
 

                             console.log "Cleaning Users failed."
                        else
                             destroyInstances()
                        
                destroyUsers()
                break
            else
                console.log 'Usage: compound database [cleanuser|cleanapps]'

                             console.log "Cleaning instances failed."
                        else
                             destroyApplications()

                destroyUsers = ->
                    User.destroyAll (error) ->
                        if error
