MP4DeleteTrack - Delete a track
#include <mp4.h>
bool MP4DeleteTrack(
MP4FileHandle hFile,
MP4TrackId trackId
)
Upon success, true (1). Upon an error, false (0).
MP4DeleteTrack deletes the control information associated with the specified track. The trackId will become invalid if this call succeeds.
Note that the samples associated with this track are not deleted with this call. This can be accomplished via MP4Optimize(). The reason for this is that multiple tracks can reference the same samples so a global view must be taken when deleting them.
MP4(3)