Delete Unused Layout Slides Introduction
Aspose.Slides Cloud API has methods to delete unused LayoutSlides from a PowerPoint Presentation
API
Type
Description
Swagger Link
/slides/{name}/layoutSlides
DELETE
Delete unused LayoutSlides from a PowerPoint Presentation
DeleteUnusedLayoutSlides
/slides/layoutSlides/delete
POST
Delete unused LayoutSlides from a PowerPoint Presentation (without using storage)
DeleteUnusedLayoutSlidesOnline
cURL Example
SDKs
Using an SDK (API client) is the quickest way for a developer to speed up the development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. Check out our GitHub repository for a complete list of Aspose.Slides Cloud SDKs along with working examples, to get you started in no time. Please check Available SDKs article to learn how to add an SDK to your project.
SDK Examples
C#
SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
LayoutSlides result = api . DeleteUnusedLayoutSlides ( "MyPresentation.pptx" );
Console . WriteLine ( result . SlideList . Count );
Java
SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
LayoutSlides result = api . deleteUnusedLayoutSlides ( "MyPresentation.pptx" , null , null , null );
System . out . println ( result . getSlideList (). size ());
PHP
use Aspose\Slides\Cloud\Sdk\Api\Configuration ;
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi ;
$config = new Configuration ();
$config -> setAppSid ( "MyClientId" );
$config -> setAppKey ( "MyClientSecret" );
$api = new SlidesApi ( null , $config );
$result = $api -> DeleteUnusedLayoutSlides ( "MyPresentation.pptx" );
print ( count ( $result -> getSlideList ()));
Ruby
configuration = AsposeSlidesCloud :: Configuration . new
configuration . app_sid = "MyClientId"
configuration . app_key = "MyClientSecret"
api = AsposeSlidesCloud :: SlidesApi . new ( configuration )
result = api . delete_unused_layout_slides ( "MyPresentation.pptx" )
p ( result . slide_list . length )
Python
import asposeslidescloud
from asposeslidescloud.configuration import Configuration
from asposeslidescloud.apis.slides_api import SlidesApi
configuration = Configuration ()
configuration . app_sid = 'MyClientId'
configuration . app_key = 'MyClientSecret'
api = SlidesApi ( configuration )
result = api . delete_unused_layout_slides ( "MyPresentation.pptx" )
print ( len ( result . slide_list ))
Node.js
const CloudSdk = require ( "asposeslidescloud" );
const fs = require ( "fs" );
const api = new CloudSdk . SlidesApi ( "MyClientId" , "MyClientSecret" );
api . deleteUnusedLayoutSlides ( "MyPresentation.pptx" ). then ( response => {
console . log ( response . body . slideList . length );
});
Go
cfg := asposeslidescloud . NewConfiguration ()
cfg . AppSid = "MyClientId"
cfg . AppKey = "MyClientSecret"
api := asposeslidescloud . NewAPIClient ( cfg )
result , _ , e := api . SlidesApi . DeleteUnusedLayoutSlides ( "MyPresentation.pptx" , "" , "" , "" )
if e != nil {
fmt . Printf ( "Error: %v." , e )
return
}
fmt . Printf ( "%v" , len ( result .( asposeslidescloud . ILayoutSlides ). GetSlideList ()))
C++
Perl
Swift
SDK Source
The Aspose Cloud SDK’s can be downloaded from the following page: Available SDK’s