Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
The "deleteVideo" VOD/AOD API function
To delete media, the iFolderCode must be supplied.
There is no function to retrieve the iFolderCode. But starting with the URL of an mp3 file:
https://vod.infomaniak.com/redirect/username_vod/audio-12345/mp3-123/10-ain_t-that-peculiar.mp3
By breaking the URL down, we can easily retrieve the following information:
12345: is the folder ID
10-ain_t-that-peculiar (filename minus extension): is the sFileServerCode
We can then call the delete function using these two pieces of information.
Link to this FAQ: