Delete a folder from the workspace. All existing links will still work, but they will no longer be associated with this folder.
Go
package main import( "context" dubgo "github.com/dubinc/dub-go" "log" ) func main() { ctx := context.Background() s := dubgo.New( dubgo.WithSecurity("DUB_API_KEY"), ) res, err := s.Folders.Delete(ctx, "<id>") if err != nil { log.Fatal(err) } if res != nil { // handle response } }
{ "id": "<string>" }
Default authentication mechanism
The ID of the folder to delete.
The deleted folder ID.
The response is of type object.
object
Was this page helpful?