Created
July 6, 2022 00:01
-
-
Save lobot/a676ccf440a24433cd4515f3c48603eb to your computer and use it in GitHub Desktop.
help-center-mass-delete-cancel-yourdb-typescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config: Configuration = new Configuration({ | |
username: LOB_API_KEY, | |
}); | |
const postcardsApi = new PostcardsApi(config); | |
for (let item of dbdata) { | |
await postcardsApi.cancel(item.id); | |
/* Remove the record from your database */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment