Smartsheet.Api.Internal.FolderResourcesImpl.DeleteFolder C# (CSharp) Method

DeleteFolder() public method

Deletes a folder.

It mirrors To the following Smartsheet REST API method:
DELETE /folders/{folderId}

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public DeleteFolder ( long folderId ) : void
folderId long the folder Id
return void
        public virtual void DeleteFolder(long folderId)
        {
            this.DeleteResource<Folder>("folders/" + folderId, typeof(Folder));
        }

Usage Example

Example #1
0
        public virtual void TestDeleteFolder()
        {
            server.setResponseBody("../../../TestSDK/resources/deleteFolder.json");

            folderResource.DeleteFolder(7752230582413188L);
        }