# RemoveChars (String str, String charsToRemove)

| Name                     | *RemoveChars*                                                                                                                            |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Applicable To (DataType) | String                                                                                                                                   |
| Purpose                  | To remove the occurrences of a character specified in *charsToRemove* parameter.                                                         |
| Description              | Removes all occurrences of any character specified in *charsToRemove* parameter.                                                         |
| Return Type              | String                                                                                                                                   |
| Syntax                   | str \[System.String] – string to remove characters from                                                                                  |
|                          | charsToRemove \[System.String] – string containing characters to be removed. Any character found in the string will be removed from str. |

![properties](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FyOrXEG0C5qilDbSGb7Dw%2Fproperties%201618232930101.png?alt=media)

## Example

In this example, we have are passing the required parameters using a *Variables* object where:

*str* = ABCDEFGH

*charsToRemove* = ABC

![dataflow](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F67wU82uy7znPCNUGAnrh%2Fdataflow.png?alt=media)

Right-click on the function transformation object and select *Preview Output*. You can see that the specified characters in *charsToRemove* have been removed.

![output](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FlO8t3rI2wUqqFU9UyNFf%2Foutput.png?alt=media)
