Delete Worksheet Hyperlink This REST API deletes a worksheet hyperlink by its index on an Excel worksheet.
REST API
DELETE https://api.aspose.cloud/v3.0/cells/{ name} /worksheets/{ sheetName} /hyperlinks/{ hyperlinkIndex}
Request Parameters
Parameter Name
Type
Location
Required
Description
name
string
path
✅
Name of the Excel document.
sheetName
string
path
✅
Name of the worksheet.
hyperlinkIndex
integer
path
✅
Zero‑based index of the hyperlink to delete.
folder
string
query
❌
Folder containing the document (default: root).
storageName
string
query
❌
Name of the storage service (default storage used if omitted).
Responses
Status Code
Description
Example Body
200 OK
Hyperlink deleted successfully.
{"Code":200,"Status":"OK"}
400 Bad Request
Missing or invalid parameters.
{"Code":400,"Message":"Invalid hyperlinkIndex."}
401 Unauthorized
Authentication token is missing or invalid.
{"Code":401,"Message":"Invalid access token."}
404 Not Found
The file, worksheet, or hyperlink index does not exist.
{"Code":404,"Message":"Resource not found."}
500 Internal Server Error
Unexpected server error.
{"Code":500,"Message":"Internal server error."}
The OpenAPI Specification defines a publicly accessible programming interface and lets you perform REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The example below shows how to call the API with cURL.
Cloud SDK Family
Using an SDK is the fastest way to develop. An SDK handles low‑level details so you can focus on your project. Please check the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples demonstrate how to call Aspose.Cells web services using various SDKs. Inline snippets are provided for reliability; a link to the original Gist is kept for reference.
C#
// ExampleDeleteWorksheetHyperlink.cs
// Source: https://gist.github.com/aspose-cells-cloud-gists/8a5b324fdf3e574dbd747c1a1e24b05d
using Aspose.Cells.Cloud.SDK.Api ;
using Aspose.Cells.Cloud.SDK.Model ;
var apiInstance = new CellsApi ( "<client_id>" , "<client_secret>" );
var response = apiInstance . DeleteWorksheetHyperlink (
name : "test1.xlsx" ,
sheetName : "Sheet1" ,
hyperlinkIndex : 0 ,
folder : null ,
storageName : null );
Console . WriteLine ( response . Status );
Java
// Example_DeleteWorksheetHyperlink.java
// Source: https://gist.github.com/aspose-cells-cloud-gists/c59aa5c02f735466a5e34751cee73f5f
import com.aspose.cells.cloud.api.CellsApi ;
import com.aspose.cells.cloud.model.* ;
CellsApi api = new CellsApi ( "<client_id>" , "<client_secret>" );
ApiResponse < Void > response = api . deleteWorksheetHyperlink (
"test1.xlsx" ,
"Sheet1" ,
0 ,
null ,
null );
System . out . println ( "Status: " + response . getStatusCode ());
PHP
// Example_DeleteWorksheetHyperlink.php
// Source: https://gist.github.com/aspose-cells-cloud-gists/84283c8ba766ed815f47e6dfb0891152
require_once ( 'vendor/autoload.php' );
$config = new Aspose\Cells\Configuration ();
$config -> setAppSid ( '<client_id>' );
$config -> setAppKey ( '<client_secret>' );
$apiInstance = new Aspose\Cells\Api\CellsApi ( $config );
$response = $apiInstance -> deleteWorksheetHyperlink (
"test1.xlsx" ,
"Sheet1" ,
0 ,
null ,
null );
echo $response -> getStatusCode ();
Ruby
# Example_DeleteWorksheetHyperlink.rb
# Source: https://gist.github.com/aspose-cells-cloud-gists/36ed8b8727561b92692939513d365fca
require 'aspose_cells_cloud'
api = AsposeCellsCloud :: CellsApi . new ( '<client_id>' , '<client_secret>' )
result = api . delete_worksheet_hyperlink ( 'test1.xlsx' , 'Sheet1' , 0 )
puts result . status
Node.js
// Example_DeleteWorksheetHyperlink.ts (Node.js)
// Source: https://gist.github.com/aspose-cells-cloud-gists/e82de2e4189bc27ae92abf73c36b4df0
const AsposeCellsCloud = require ( "asposecellscloud" );
const api = new AsposeCellsCloud . CellsApi ( "<client_id>" , "<client_secret>" );
api
. deleteWorksheetHyperlink ( "test1.xlsx" , "Sheet1" , 0 , null , null )
. then (() => console . log ( "Hyperlink deleted" ))
. catch (( err ) => console . error ( err ));
Python
# Example_DeleteWorksheetHyperlink.py
# Source: https://gist.github.com/aspose-cells-cloud-gists/61e922de11e6e7144db88adcad6501c1
from asposecellscloud import CellsApi , Configuration
config = Configuration ( app_sid = '<client_id>' , app_key = '<client_secret>' )
api = CellsApi ( config )
api . delete_worksheet_hyperlink ( 'test1.xlsx' , 'Sheet1' , 0 )
print ( 'Hyperlink deleted' )
Perl
# Example_DeleteWorksheetHyperlink.pl
# Source: https://gist.github.com/aspose-cells-cloud-gists/f82a3a00251e34ff8766116282c8c9ca
use AsposeCellsCloud::CellsApi ;
my $api_instance = AsposeCellsCloud::CellsApi -> new ( '<client_id>' , '<client_secret>' );
my $result = $api_instance -> delete_worksheet_hyperlink (
name => 'test1.xlsx' ,
sheet_name => 'Sheet1' ,
hyperlink_index => 0 );
print "Status: $result->{status}\n" ;
Go
// Example_DeleteWorksheetHyperlink.go
// Source: https://gist.github.com/aspose-cells-cloud-gists/2b824d4e13644368d12682856aa49185
package main
import (
"fmt"
"github.com/asposecellscloud/asposecellscloud-go/v3"
)
func main () {
config := asposecellscloud . NewConfiguration ( "<client_id>" , "<client_secret>" )
api := asposecellscloud . NewAPIClient ( config ). CellsApi
_ , err := api . DeleteWorksheetHyperlink ( "test1.xlsx" , "Sheet1" , 0 , nil , nil )
if err != nil {
fmt . Println ( err )
} else {
fmt . Println ( "Hyperlink deleted" )
}
}