({{, (RefLink[StringDrop, paclet:ref/StringDrop])["string",n]
gives "string" with its first n characters dropped. }, {, (RefLink[StringDrop, paclet:ref/StringDrop])["string",-n]
gives "string" with its last n characters dropped. }, {, (RefLink[StringDrop, paclet:ref/StringDrop])["string",{n}]
gives "string" with its n(^th) character dropped. }, {, (RefLink[StringDrop, paclet:ref/StringDrop])["string",{m,n}]
gives "string" with characters m through n dropped. }, {, (RefLink[StringDrop, paclet:ref/StringDrop])[{(Subscript[s, 1]),(Subscript[s, 2]),…},spec]
gives the list of results for each of the (Subscript[s, i]). }})

OpenersNotesSection(Spacer1)Details

(RefLink[StringDrop, paclet:ref/StringDrop])["string",(RefLink[UpTo, paclet:ref/UpTo])[n]] removes n characters, or as many as are available.

(RefLink[StringDrop, paclet:ref/StringDrop])["string",{m,n,s}] drops characters m through n in steps of s.

(RefLink[StringDrop, paclet:ref/StringDrop]) uses the standard Wolfram Language sequence specification.

OpenersPrimaryExamplesSection(Spacer1)Examples  (12)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Drop the first 4 characters from a string:

StringDrop["abcdefghijklm",4]

Use (RefLink[InputForm, paclet:ref/InputForm]) to show quotes:

InputForm[%]

Drop from the end of the string:

StringDrop["abcdefghijklm",-4]

Drop characters 5 through 10:

StringDrop["abcdefghijklm",{5,10}]

OpenersExampleSection1(Spacer1)Scope  (5)

Drop character 3 from a string:

StringDrop["abcdefghijklm",{3}]

Drop every other character:

StringDrop["abcdefghijklm",{1,-1,2}]

Drop the last 2 characters from several strings:

StringDrop[{"abcdef","xyzw","stuv"},-2]

(RefLink[StringDrop, paclet:ref/StringDrop]) works with special characters:

StringDrop["◆αβγ⟷𝒜ℬ𝒞↵",-4]

Drop the first 4 characters if possible, else as many as are available:

StringDrop["abc",UpTo[4]]

OpenersExampleSection2(Spacer1)Properties & Relations  (3)

Newline (\n) counts as a single character:

StringDrop["abc\ndef",4]

(RefLink[StringDrop, paclet:ref/StringDrop]) works like applying (RefLink[Drop, paclet:ref/Drop]) to the list of characters:

Drop[Characters["abcdefghijklm"],{5,-4}]

StringDrop["abcdefghijklm",{5,-4}]

(RefLink[StringReplacePart, paclet:ref/StringReplacePart]) with an empty string can be used like (RefLink[StringDrop, paclet:ref/StringDrop]):

StringReplacePart["abcdefghijk","",{2,5}]

StringDrop["abcdefghijk",{2,5}]

(RefLink[StringReplacePart, paclet:ref/StringReplacePart]) can drop several sequences of characters at a time:

StringReplacePart["abcdefghijk","",{{2,5},{7,8},{-1,-1}}]

OpenersExampleSection3(Spacer1)Possible Issues  (1)

(RefLink[StringDrop, paclet:ref/StringDrop]) operates on the raw characters in a string:

StringDrop["red",10]

FullForm["red"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Drop, paclet:ref/Drop])  ▪  (RefLink[StringTake, paclet:ref/StringTake])  ▪  (RefLink[StringTrim, paclet:ref/StringTrim])  ▪  (RefLink[StringPosition, paclet:ref/StringPosition])  ▪  (RefLink[StringReplacePart, paclet:ref/StringReplacePart])  ▪  (RefLink[FileNameDrop, paclet:ref/FileNameDrop])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Operations on Strings, paclet:tutorial/OperationsOnStrings])}, {▪(RefLinkPlain[Special Characters, paclet:tutorial/SpecialCharacters-StringsAndCharacters])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[String Manipulation, paclet:guide/StringManipulation])}, {▪(RefLinkPlain[String Operations, paclet:guide/StringOperations])}, {▪(RefLinkPlain[Text Normalization, paclet:guide/TextNormalization])}})}})