Delete Unused Master Slides Introduction
Aspose.Slides Cloud API allows you to delete unused Master slides from a PowerPoint Presentation.
API
Type
Description
Swagger Link
/slides/{name}/materSlides
DELETE
Delete unused Master slides from a PowerPoint Presentation
DeleteUnusedMasterSlides
/slides/masterSlides/delete
POST
Delete unused Master slides from a PowerPoint Presentation (without using storage)
DeleteUnusedMasterSlidesOnline
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" );
MasterSlides result = api . DeleteUnusedMasterSlides ( "MyPresentation.pptx" , true );
Console . WriteLine ( result . SlideList . Count );
Java
SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
MasterSlides result = ( MasterSlides ) api . deleteUnusedMasterSlides ( "MyPresentation.pptx" , true , 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 -> deleteUnusedMasterSlides ( "MyPresentation.pptx" , true );
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_master_slides ( "MyPresentation.pptx" , true )
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_master_slides ( "MyPresentation.pptx" , True )
print ( len ( result . slide_list ))
Node.js
const CloudSdk = require ( "asposeslidescloud" );
const fs = require ( "fs" );
const api = new CloudSdk . SlidesApi ( "MyClientId" , "MyClientSecret" );
api . deleteUnusedMasterSlides ( "MyPresentation.pptx" , true ). then (( response ) => {
console . log ( response . body . slideList . length );
});
Go
cfg := asposeslidescloud . NewConfiguration ()
cfg . AppSid = "MyClientId"
cfg . AppKey = "MyClientSecret"
api := asposeslidescloud . NewAPIClient ( cfg )
var ignorePreserveField bool = true
result , _ , e := api . SlidesApi . DeleteUnusedMasterSlides ( "MyPresentation.pptx" , & ignorePreserveField , "" , "" , "" )
if e != nil {
fmt . Printf ( "Error: %v." , e )
return
}
fmt . Printf ( "%v" , len ( result .( asposeslidescloud . IMasterSlides ). GetSlideList ()))
C++
Perl
Swift
SDK Source
The Aspose Cloud SDK’s can be downloaded from the following page: Available SDK’s