func (s *Service) DropAllRaws(w io.Writer) error {
	return s.dropAllResources(RawType, w)
}
DropAllRaws deletes all remote raw files from Cloudinary. File names are
written to io.Writer if available.
package cloudinary
import (
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"net/url"
	"strconv"
	"github.com/qiscus/qiscus-sdk-api/api/admin/v1"
)
const (
	baseAdminUrl = "https://api.cloudinary.com/v1_1"
)
const (
	pathListAllImages = "/resources/image"
	pathListAllRaws   = "/resources/raw"
	pathListSingleImage = "/resources/image/upload/"
  pathListAllVideos = "/resources/video"
)
const (
	maxResults = 2048
)
func (s *Service) dropAllResources(rtype ResourceType, w io.Writer) error {
	qs := url.Values{
		"max_results": []string{strconv.FormatInt(maxResults, 10)},
	}
	path := pathListAllImages
	if rtype == RawType {
		path = pathListAllRaws
	}
	for {
		resp, err := http.Get(fmt.Sprintf("%s%s?%s", s.adminURI, path, qs.Encode()))
		m, err := handleHttpResponse(resp)
		if err != nil {
			return err
		}
		for _, v := range m["resources"].([]interface{}) {
			publicId := v.(map[string]interface{})["public_id"].(string)
			if w != nil {
				fmt.Fprintf(w, "Deleting %s ... ", publicId)
			}
			if err := s.Delete(publicId, "", rtype); err != nil {
				fmt.Fprintf(w, "Error: %s: %s\n", publicId, err.Error())
			}
		}
		if e, ok := m["next_cursor"]; ok {
			qs.Set("next_cursor", e.(string))
		} else {
			break
		}
	}
	return nil
}
func (s *Service) DropAllImages(w io.Writer) error {
	return s.dropAllResources(ImageType, w)
}