I am trying to upload the app using the cURL command which works fine. But when I try to delete the apps using API, it doesn't work. What to do?

When I try to delete the apps using API, it doesn’t work. I need support.