## Delete a store `client.SecretsStore.Stores.Delete(ctx, storeID, params) (*StoreDeleteResponse, error)` **delete** `/accounts/{account_id}/secrets_store/stores/{store_id}` Deletes a single store. By default, a store that still contains secrets cannot be deleted and returns HTTP 409 (Conflict) with the "store_not_empty" error. Pass `force=true` to cascade-delete all secrets in the store. Empty stores are always deleted regardless of the force parameter. ### Parameters - `storeID string` Store Identifier - `params StoreDeleteParams` - `AccountID param.Field[string]` Path param: Account Identifier - `Force param.Field[bool]` Query param: When true, cascade-deletes all secrets in the store before deleting the store itself. Required when deleting a non-empty store. Without this parameter, attempting to delete a non-empty store returns 409. ### Returns - `type StoreDeleteResponse interface{…}` Result is null for delete operations. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/option" "github.com/cloudflare/cloudflare-go/secrets_store" ) func main() { client := cloudflare.NewClient( option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), option.WithAPIEmail("user@example.com"), ) store, err := client.SecretsStore.Stores.Delete( context.TODO(), "023e105f4ecef8ad9ca31a8372d0c353", secrets_store.StoreDeleteParams{ AccountID: cloudflare.F("985e105f4ecef8ad9ca31a8372d0c353"), }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", store) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": {} } ```