function S = erase(STR, varargin)
%ERASE Remove segments from string elements.
%   
%   S = ERASE(STR,START)
%   S = ERASE(STR,START,END)
%   S = ERASE(STR,START_STR,END_STR)
%   
%   Limitations:
%   Pattern objects are not supported.
%   
%   See also ERASE.
%   


%   Copyright 2016-2020 The MathWorks, Inc.

narginchk(2, inf);
% PATTERN is currently not supported
matlab.bigdata.internal.util.errorIfPatternInput('distributed', STR, varargin{:})
S = codistributed.pElementwiseUnaryOp(@erase, STR, varargin{:});
