Delete PowerPoint Slide with C# REST API

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

Steps to Delete Slide with C# REST Interface

  1. Create the SlidesApi class object for deleting a slide from the presentation
  2. Upload the source presentation into the Cloud storage to remove a slide
  3. Call the DeleteSlide() method by providing the necessary parameters
  4. Display the remaining slide URLs from the API response object
  5. 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 delete PowerPoint slide with C# REST API.