Deleting Layouts

0 votes
Hi, Is there a way to delete all the layouts in my account?

Approved Answer

Reply to: Deleting Layouts

0 votes
Hi there, Here's an example on how to delete your layouts:
EslClient eslClient = new EslClient("key", "https://apps.esignlive.com/api");
int i = 1;
List layouts = eslClient.getLayoutService().getLayouts(Direction.ASCENDING, new PageRequest(i,50));
while (!layouts.isEmpty()) {
		for (DocumentPackage layout : layouts) {
				System.out.println(String.format("Deleted layout: %s", layout.getName()));
		 layouts = eslClient.getLayoutService().getLayouts(Direction.ASCENDING, new PageRequest(i,50));
What the code above does is retrieve the first 50 layouts in your account (maximum of 50 layouts can be retrieved at a time), which are returned to you as a List. Then, loop through each layout and: 1. Trashes it 2. Deletes it permanently Finally, the next 50 layouts and the above steps repeated until all layouts have been deleted. Hope this helps.
Haris Haidary OneSpan Technical Consultant

Reply to: Deleting Layouts

0 votes
I have a list of 4 layouts that were used when testing after opening my new account. I need to remove all of them and start from scratch. However, I was told this is not an option as a Professional user with no API access. Who can I reach on eSignLive side to remove these from my account so we can start fresh?

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