package main
import(
"context"
"github.com/LukeHagar/plexgo"
"log"
)
func main() {
ctx := context.Background()
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Library.DeleteCaches(ctx)
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}Delete the hub caches so they are recomputed on next request
package main
import(
"context"
"github.com/LukeHagar/plexgo"
"log"
)
func main() {
ctx := context.Background()
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Library.DeleteCaches(ctx)
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}The token which identifies the user accessing the PMS. This can be either:
JWT tokens provide better security with:
OK
Was this page helpful?