Follow this article to delete PowerPoint slide with C# REST API. You will learn how to remove slide from PPT with C# Low Code API using a .NET-based Cloud SDK. You can repeat the process to delete multiple slides from the presentation.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Dotnet to remove a slide
- Setup C# project with the above SDK to delete a slide from a PPTX online
Steps to Delete Slide with C# REST Interface
- Create the SlidesApi class object for deleting a slide from the presentation
- Upload the source presentation into the Cloud storage to remove a slide
- Call the DeleteSlide() method by providing the necessary parameters
- Display the remaining slide URLs from the API response object
- Download the updated presentation from the Cloud storage and save it on the disk
The above steps explain how to delete PowerPoint slide with C# .NET-based API. Create the SlidesApi class object with a user ID and secret, upload the presentation to the Cloud storage, and invoke the DeleteSlide() API call for deleting the slide. Display the remaining slides URLs from the API response and save the updated presentation on the disk.
Code to Delete Slides in PowerPoint with C# RESTful Service
This code demonstrates how to remove slide from PPT with C# Low Code API. The DeleteSlide() method requires the uploaded presentation name and the slide index starting from 1 that you want to delete. The API response contains the list of remaining slides that are left in the uploaded presentation that you can display using the Href property.
This article has taught us to delete individual slides from a presentation. If you want to split slides from a presentation, refer to the article on Splot Slides with C# REST API.