Delete Vertical Page Break

Delete a vertical page break from a worksheet in an Excel workbook using the Aspose.Cells Cloud REST API.


Prerequisites


HTTP Request

DELETE https://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/verticalpagebreaks/{index}
Parameter Type Location Required Description
name string path Yes The name of the Excel file.
sheetName string path Yes The name of the worksheet that contains the page break.
index integer path Yes Zero‑based index of the vertical page break to delete.
folder string query No Folder path where the file is stored.
storageName string query No Name of the storage service.

Request Example

curl -v "https://api.aspose.cloud/v3.0/cells/Book1.xlsx/worksheets/Sheet1/verticalpagebreaks/0?folder=Docs&storageName=MyStorage" \
  -X DELETE \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <jwt_token>"

Success Response

Code Description
200 The vertical page break was deleted successfully.

Example payload

{
  "Code": 200,
  "Status": "OK"
}

Error Responses

HTTP Code Description
401 Unauthorized – missing or invalid token.
404 Not Found – the specified file, worksheet, or page‑break index does not exist.
400 Bad Request – malformed request syntax or invalid parameters.
500 Internal Server Error – an unexpected condition was encountered.

Sample error payloads

401 – Unauthorized

{
  "Code": 401,
  "Message": "Invalid authentication token."
}

404 – Not Found

{
  "Code": 404,
  "Message": "The specified file, worksheet, or page‑break index was not found."
}

400 – Bad Request

{
  "Code": 400,
  "Message": "The request parameters are invalid or malformed."
}

500 – Internal Server Error

{
  "Code": 500,
  "Message": "An unexpected server error occurred."
}

SDK Code Samples

The following examples demonstrate how to call the DeleteVerticalPageBreak operation using various Aspose.Cells Cloud SDKs.

**C#**
// Install-Package Aspose.Cells-Cloud
using Aspose.Cells.Cloud.SDK.Api;
using Aspose.Cells.Cloud.SDK.Model;

var apiInstance = new CellsApi("client_id", "client_secret");
string name = "Book1.xlsx";
string sheetName = "Sheet1";
int index = 0;
string folder = "Docs";
string storageName = "MyStorage";

try
{
    var response = apiInstance.DeleteVerticalPageBreak(name, sheetName, index, folder, storageName);
    Console.WriteLine($"Status: {response.Status}");
}
catch (Exception e)
{
    Console.WriteLine("Exception when calling CellsApi.DeleteVerticalPageBreak: " + e.Message );
}
**Java**
import com.aspose.cloud.cells.api.CellsApi;
import com.aspose.cloud.cells.model.CellsCloudResponse;

public class DeleteVerticalPageBreak {
    public static void main(String[] args) {
        CellsApi api = new CellsApi("client_id", "client_secret");
        String name = "Book1.xlsx";
        String sheetName = "Sheet1";
        int index = 0;
        String folder = "Docs";
        String storageName = "MyStorage";

        try {
            CellsCloudResponse resp = api.deleteVerticalPageBreak(name, sheetName, index, folder, storageName);
            System.out.println("Status: " + resp.getStatus());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
**Python**
from asposecellscloud import CellsApi, ApiClient, Configuration

config = Configuration()
config.client_id = "client_id"
config.client_secret = "client_secret"
api_client = ApiClient(configuration=config)
api = CellsApi(api_client)

name = "Book1.xlsx"
sheet_name = "Sheet1"
index = 0
folder = "Docs"
storage_name = "MyStorage"

try:
    response = api.delete_vertical_page_break(name, sheet_name, index, folder, storage_name)
    print("Status:", response.status)
except Exception as e:
    print("Error:", e)
**Node.js**
const { CellsApi, ApiClient, Configuration } = require('asposecellscloud');

const config = new Configuration();
config.clientId = "client_id";
config.clientSecret = "client_secret";

const api = new CellsApi(new ApiClient(config));

const name = "Book1.xlsx";
const sheetName = "Sheet1";
const index = 0;
const folder = "Docs";
const storageName = "MyStorage";

api.deleteVerticalPageBreak(name, sheetName, index, folder, storageName)
  .then(response => console.log('Status:', response.status))
  .catch(error => console.error('Error:', error));
**Go**
package main

import (
    "fmt"
    "github.com/asposecellscloud/aspose-cells-cloud-go/v3"
)

func main() {
    config := asposecellscloud.NewConfiguration()
    config.ClientId = "client_id"
    config.ClientSecret = "client_secret"

    api := asposecellscloud.NewAPIClient(config).CellsApi
    name := "Book1.xlsx"
    sheetName := "Sheet1"
    index := int32(0)
    folder := "Docs"
    storageName := "MyStorage"

    resp, _, err := api.DeleteVerticalPageBreak(name, sheetName, index, folder, storageName)
    if err != nil {
        fmt.Println("Error:", err)
        return
    }
    fmt.Println("Status:", resp.Status)
}

(SDK snippets for PHP, Ruby, Perl, and other languages follow the same pattern and are available in the official GitHub repository.)



Document last updated: 2026‑07‑30