Aspose.Cells Cloud API: Remove Characters from Excel Files

The PostRemoveCharacters API (POST https://api.aspose.cloud/v3.0/cells/removecharacters) in Aspose.Cells Cloud enables precise text cleaning within Excel worksheets by removing specified characters, character sets (such as non-printing characters, letters, digits, symbols, or punctuation), or substrings from selected cells — eliminating unwanted symbols, formatting artifacts, or inconsistent text patterns — and supports data preprocessing, validation, and workflow automation through a single, flexible request body parameter. Note that this operation modifies cell values in-place and returns the updated workbook as a base64-encoded string in the response.

The Post Remove Characters Web API

POST https://api.aspose.cloud/v3.0/cells/removecharacters

Security and Authentication

The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.

Request Parameters

Parameter Name Type Path/Query String/HTTPBody Description
removeCharactersOptions Class Body -

Response

[
  {
    "Name": "FileInfo",
    "DataType": {
      "Identifier": "Class",
      "Reference": "FileInfo"
    }
  }
]

Sample response headers

HTTP/1.1 200 OK
Content-Type: application/json

Error Responses

Code Meaning Description
200 OK The request completed successfully.
400 Bad Request The request is malformed or one or more parameters are invalid.
401 Unauthorized Authentication failed, or the JWT token is missing or expired.
404 Not Found The requested workbook, worksheet, or resource was not found.
413 Payload Too Large The uploaded file exceeds the allowed size limit.
500 Internal Server Error The server encountered an unexpected error while processing the request.

On success, the API returns a FileInfo object containing metadata and the updated file content.

Field Description
Code HTTP status code (200 for success).
Status Operation result ("OK").
Filename Name of the modified file.
Filesize Size of the updated file in bytes.
FileContent Base64-encoded binary content of the updated Excel file.

Example Request (cURL)

curl -X POST "https://api.aspose.cloud/v3.0/cells/removecharacters" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
  -H "Content-Type: application/json" \
  -d '{
    "Range": "A1:B20",
    "CustomCharacters": "@#$",
    "Substring": "USD",
    "IgnoreCase": true
  }'

Example Response

{
  "Code": 200,
  "Status": "OK",
  "Filename": "cleaned_report.xlsx",
  "Filesize": 45892,
  "FileContent": "UEsDBBQABgAIAAAAIQDf...[base64-encoded .xlsx content]"
}

How to Use the Post Remove Characters API with SDKs?

API Specification

The Post Remove Characters API Specification defines a publicly accessible programming interface and enables you to carry out REST interactions directly from a web browser.

Use Aspose.Cells Cloud SDKs

Using the SDK is the fastest way to develop, as it abstracts away the low‑level details, allowing you to use the API with short code.
Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.