code: public void onWorkspaceRemove(String workspaceName)
     {
        long dataSize;
  
        try
        {
           dataSize = quotaPersister.getWorkspaceDataSize(rName, workspaceName);
        }
        catch (UnknownDataSizeException e)
        {
           return;
        }
  
        ChangesItem changesItem = new ChangesItem();
        changesItem.updateWorkspaceChangedSize(-dataSize);
  
        WorkspaceQuotaContext context =
           new WorkspaceQuotaContext(workspaceName, rName, null, null, null, null, quotaPersister, null, null);
  
        Runnable task = new ApplyPersistedChangesTask(context, changesItem);
        task.run();
  
        quotaPersister.setWorkspaceDataSize(rName, workspaceName, dataSize); // workaround
     }
docs: {@inheritDoc}