def delete_by_id(archive_id)
      raise ArgumentError, "archive_id not provided" if archive_id.to_s.empty?
      response = @client.delete_archive(archive_id)
      (200..300).include? response.code
    end
def delete_by_id(archive_id)
      raise ArgumentError, "archive_id not provided" if archive_id.to_s.empty?
      response = @client.delete_archive(archive_id)
      (200..300).include? response.code
    end
Deletes an OpenTok archive.

 You can only delete an archive which has a status of "available", "uploaded", or "deleted".
 Deleting an archive removes its record from the list of archives. For an "available" archive,
 it also removes the archive file, making it unavailable for download. For a "deleted"
 archive, the archive remains deleted.

 @param [String] archive_id The archive ID of the archive you want to delete.

 @raise [OpenTokAuthenticationError] Authentication failed or an invalid archive ID was given.
 @raise [OpenTokArchiveError] The archive could not be deleted. The status must be
   'available', 'deleted', or 'uploaded'.
 @raise [OpenTokArchiveError] The archive could not be deleted.