> ## Documentation Index
> Fetch the complete documentation index at: https://shipfree.revoks.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Premium Purchase

> Strip premium purchase routes and env vars if you do not need them.

# Remove premium purchase

If you do not plan to sell the template itself, you can remove the premium purchase feature entirely.

## Delete folders

* `src/app/api/premium-purchase/`
* `src/app/api/webhooks/premium-purchase/`
* `src/app/(site)/premium-purchase/`

## Delete files

* `src/lib/premium-purchase.ts`
* `src/lib/premium-purchase/hooks.ts`
* `src/app/(site)/pricing/premium-button.tsx`

## Update pricing page

In `src/app/(site)/pricing.tsx`:

* Remove the `PremiumButton` import
* Replace `<PremiumButton />` with a standard button or remove it

## Remove env vars

In `src/config/env.ts` and `.env`:

* Remove all `PREMIUM_PURCHASE_*` variables
* Remove `NEXT_PUBLIC_PREMIUM_PURCHASE_STRIPE_PUBLISHABLE_KEY`
* Remove `NEXT_PUBLIC_PREMIUM_PURCHASE_DISCORD_INVITE_LINK`

<Warning>
  Remove any Stripe webhooks pointing to `/api/webhooks/premium-purchase` after deleting the route.
</Warning>
