code: def delete_track_at_index(self, href=None, index=None):
          
  
          # Argument error checking.
          assert href is not None
  
          # Deal with any parameters that need to be passed in.
          data = None
  
          fields = {}
          if index is not None:
              fields['track'] = index
  
          if len(fields) > 0:
              data = fields
  
          raw_result = self.delete(href, data)
  
          if raw_result.status != 204:
              raise APIException(raw_result.status, raw_result.json)
docs: Delete a track, or all the tracks.
  
          'href' the relative href to the track list. May not be None.
          'index' the index of the track to delete. If none is given,
          all tracks are deleted.
  
          Returns nothing.
  
          If the response status is not 204, throws an APIException.