function [OK, serError, serWarnings] = remoteClear( arrayHolder )
%

% Copyright 2008-2018 The MathWorks, Inc.
    wc = parallel.internal.general.WarningsCollector();

    try
        spmdlang.ValueStore.remove( arrayHolder.array() );
        OK       = true;
        serError = [];
    catch E
        OK       = false;
        serError = distcompserialize( E );
    end
    serWarnings = distcompserialize( wc.Warnings );
end
