Smartsheet.Api.Internal.AttachmentVersioningResourcesImpl.DeleteAllVersions C# (CSharp) Method

DeleteAllVersions() public method

Deletes all versions of the attachment corresponding to the specified Attachment ID. For attachments with multiple versions, this will effectively delete the attachment from the object that it’s attached to.

It mirrors To the following Smartsheet REST API method: DELETE /sheets/{sheetId}/attachments/{attachmentId}/versions

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 DeleteAllVersions ( long sheetId, long attachmentId ) : void
sheetId long the sheetId
attachmentId long the attachment id
return void
        public virtual void DeleteAllVersions(long sheetId, long attachmentId)
        {
            this.DeleteResource<Attachment>("sheets/" + sheetId + "/attachments/" + attachmentId + "/versions", typeof(Attachment));
        }