Cannot delete posts using API documentation

Hello,
I’m following this documentation (Ghost Admin API Documentation) to delete posts, but deleting a post is not working. I tried using both the prescribed ways: admin API and API client (Admin API JavaScript Client).

I tried with the Admin API as there is no method for deleting the post object and the documentation is also not too detailed and tested. Can anyone please on any pointers to get a tested approach that works?

Thanks

If you can explain what’s not working, including all error messages, it will be a lot easier for someone to help you.

Hello,
I can now delete a single post using the API.
Does anyone know what the API call is that returns ALL post ids?
Thanks