Delete a column on an Excel worksheet This REST API copy column
in an Excel Worksheet.
RSET API
Copy
DELETE http://api.aspose.cloud/v3.0/cells/{ name} /worksheets/{ sheetName} /cells/columns/{ columnIndex}
The request parameters are:
Parameter Name
Type
Path/Query String/HTTPBody
Description
name
string
path
The workbook name.
sheetName
string
path
The worksheet name.
columnIndex
integer
path
The column index.
columns
integer
query
The columns.
updateReference
boolean
query
The update reference.
folder
string
query
The workbook folder.
storageName
string
query
storage name.
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
You can use cURL command-line tool to access Aspose.Cells web services easily. The following example shows how to make calls to Cloud API with cURL.
Cloud SDK Family
Using an SDK is the best way to speed up the development. An SDK takes care of low-level details and lets you focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples demonstrate how to make calls to Aspose.Cells web services using various SDKs:
C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/
namespace Aspose.Cells.Cloud.SDK.Example
{
using Aspose.Cells.Cloud.SDK.Api;
using Aspose.Cells.Cloud.SDK.Request;
using System;
public partial class CellsApiExample
{
public void DeleteWorksheetRowExample()
{
CellsApi cellsApi = new CellsApi(Environment.GetEnvironmentVariable("CellsCloudTestClientId"), Environment.GetEnvironmentVariable("CellsCloudTestClientSecret"));
DeleteWorksheetRowRequest request = new DeleteWorksheetRowRequest
{
name = "Book1.xlsx",
sheetName = "Sheet1",
rowIndex = 0,
folder = "TestData/In"
};
cellsApi.DeleteWorksheetRow(request);
}
}
}
// Obsolet
//CellsApi instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl);
//string name = BOOK1;
//string sheetName = SHEET1;
//int? rowIndex = 1;
//string folder = TEMPFOLDER;
//instance.UploadFile(folder + @"\" + name, File.Open( @"C:\TestData\" +name));
//var response = instance.CellsDeleteWorksheetRow(name, sheetName, rowIndex, folder);
//Assert.IsInstanceOf<CellsCloudResponse>(response, "response is CellsCloudResponse");
//Assert.AreEqual(response.Code, 200);
Java
PHP
Ruby
Python
Node.js
Android
Swift
Perl
Go