   @deleteByUid = secure (client, uid, callback)->
 
     selector     =
-      owner      : client.connection.delegate._id
+      originId   : client.connection.delegate._id
       machineUId : uid
 
     JWorkspace.remove selector, (err)->

  @share()

  @set
    schema         :
      name         : String
      slug         : String
      machineUId   : String
      machineLabel : String
      rootPath     : String
      owner        : String
      layout       : Object

    sharedMethods  :


    { delegate } = client.connection

    unless delegate.getId().equals this.originId
      return callback new KodingError 'Access denied'

    @remove callback
