Delete post using listing id

Trying to use the api to delete posts.
Does any one have any idea how to do so?
Or can more or less point me in the right direction.

I’ve looked at this

and am having trouble calling it as the function does not exist.

Any help what so ever would be appreciated

Hello!

Can you send a ticket to the support team and send us the screenshots of this error you are facing so we can provide you further help?

Contact us through here:
https://gameflip.zendesk.com/hc/en-us/requests/new

Thanks.

You have to patch the listing to “draft” before you can delete the listing. Please git pull or clone the API again and you can use this function in one of the src/samples/*.js files:

gfapi.listing_delete(yourListingId);