// Delete removes instragram story.
//
// See example: examples/media/deleteStories.go
Delete removes instragram story.

See example: examples/media/deleteStories.go
// Delete removes instragram story . // // See example : examples / media / deleteStories . go
func (media *StoryMedia) Delete() error {
	insta := media.inst
	data, err := insta.prepareData(
		map[string]interface{}{
			"media_id": media.ID(),
		},
	)
	if err == nil {
		_, err = insta.sendRequest(
			&reqOptions{
				Endpoint: fmt.Sprintf(urlMediaDelete, media.ID()),
				Query:    generateSignature(data),
				IsPost:   true,
			},
		)
	}
	return err
}
func ( media * StoryMedia ) Delete ( ) error { insta := media . inst data , err := insta . prepareData ( map [ string ] interface { } { " " : media . ID ( ) , } , ) if err == nil { _ , err = insta . sendRequest ( & reqOptions { Endpoint : fmt . Sprintf ( urlMediaDelete , media . ID ( ) ) , Query : generateSignature ( data ) , IsPost : true , } , ) } return err }
Delete removes instragram story.
Delete removes instragram story .