func (c *Storage) ClearDataForOrigin(ctx context.Context, origin string, storageTypes string) (*gcdmessage.ChromeResponse, error) {
	var v StorageClearDataForOriginParams
	v.Origin = origin
	v.StorageTypes = storageTypes
	return c.ClearDataForOriginWithParams(ctx, &v)
}
ClearDataForOrigin - Clears storage for origin.
origin - Security origin.
storageTypes - Comma separated list of StorageType to clear.
package gcdapi
import (
	"context"
	"github.com/wirepair/gcd/v2/gcdmessage"
)
type StorageUsageForType struct {
	StorageType string  `json:"storageType"`  
	Usage       float64 `json:"usage"`        
}
type StorageTrustTokens struct {
	IssuerOrigin string  `json:"issuerOrigin"`  
	Count        float64 `json:"count"`         
}
type StorageCacheStorageContentUpdatedEvent struct {
	Method string `json:"method"`
	Params struct {
		Origin    string `json:"origin"`     
		CacheName string `json:"cacheName"`  
	} `json:"Params,omitempty"`
}
type StorageCacheStorageListUpdatedEvent struct {
	Method string `json:"method"`
	Params struct {
		Origin string `json:"origin"`  
	} `json:"Params,omitempty"`
}
type StorageIndexedDBContentUpdatedEvent struct {
	Method string `json:"method"`
	Params struct {
		Origin          string `json:"origin"`           
		DatabaseName    string `json:"databaseName"`     
		ObjectStoreName string `json:"objectStoreName"`  
	} `json:"Params,omitempty"`
}
type StorageIndexedDBListUpdatedEvent struct {
	Method string `json:"method"`
	Params struct {
		Origin string `json:"origin"`  
	} `json:"Params,omitempty"`
}
type Storage struct {
	target gcdmessage.ChromeTargeter
}
func NewStorage(target gcdmessage.ChromeTargeter) *Storage {
	c := &Storage{target: target}
	return c
}
type StorageClearDataForOriginParams struct {
	Origin string `json:"origin"`
	StorageTypes string `json:"storageTypes"`
}
func (c *Storage) ClearDataForOriginWithParams(ctx context.Context, v *StorageClearDataForOriginParams) (*gcdmessage.ChromeResponse, error) {
	return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "Storage.clearDataForOrigin", Params: v})
}