Yannic Methot | Posts: 4

Package: Trash vs DeletePackage

0 votes
I'm using the SDK to create a package that contains one document to be signed. I want to offer my customer the ability to 'Cancel' a package. Should I use the 'Trash' or the 'Delete Package' method? What are the differences?

Michael Williams | Posts: 956

Reply to: Package: Trash vs DeletePackage

0 votes
I would guess that trash would put the package in your trash folder and delete would delete it permanently. I'll take a closer look though. If that's indeed the case, which would you rather have? The ability to see canceled packages or have them completely gone?

Yannic Methot | Posts: 4

Reply to: Package: Trash vs DeletePackage

0 votes
I did some testing and this is exactly it. The 'Trash()' method will send the package to the Trash, meaning this package can be restored. The 'DeletePackage' deletes the package, no restore possible. I will offer both options to my customer. Thanks

Michael Williams | Posts: 956

Reply to: Package: Trash vs DeletePackage

0 votes
Great! Thanks for updating the thread!

Dustin Ehle | Posts: 30

Reply to: Package: Trash vs DeletePackage

0 votes
Hey, so which class did you find the DeletePackage method on? I'm looking for a way to delete packages permanently on the SDK and I haven't found anything.

Yannic Methot | Posts: 4

Reply to: Package: Trash vs DeletePackage

1 votes
I used the 'DeletePackage' method found in the 'PackageService' class. Code sample in C#: client.PackageService.DeletePackage(id); Hope this help

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off