Scripts
Pulse AI includes utility scripts that help you customize the template before deployment.
These scripts are completely optional and are designed to remove features you may not need in your final project.
Remove Documentation Script
If you do not plan to use the built-in documentation system, you can remove all documentation-related files with a single command.
Run
npm run remove-docsWhat Gets Removed
The following directories will be permanently deleted:
app/(docs)
components/docs-layout
content/docsThis removes:
- Documentation routes
- Documentation layouts
- Documentation content
- Documentation-specific UI
When Should I Use This?
You may want to remove the documentation system if:
- You are building a client project
- You are launching a production SaaS
- You do not need public documentation pages
- You want a smaller codebase
Before Running
We strongly recommend committing your project before using cleanup scripts.
Example:
git add .
git commit -m "Backup before removing docs"This allows you to restore removed files later if needed.
Undoing Changes
The script permanently deletes files.
The easiest way to restore documentation is through Git.
git restore .or
git checkout HEAD -- app/(docs)
git checkout HEAD -- components/docs-layout
git checkout HEAD -- content/docsIf you are not using Git, create a backup before running the script.
How It Works
The script removes documentation-related folders from the project.
Example:
Before
app/
├── (docs)
components/
├── docs-layout
content/
├── docsAfter
app/
components/
content/All other template functionality remains unchanged.
Related Files
The cleanup command is configured inside:
package.jsonand runs:
scripts/remove-docs.jsYou may customize this script to remove additional documentation-related files if your project structure changes.
Notes
- This action is permanent unless backed by version control.
- Documentation can always be restored from Git history.
- The script only removes documentation-related files and does not affect other template features.
Remove Buy Button
Remove the floating BuyTemplateButton from your project.
npm run remove-buy-buttonThis command will:
- Remove the
BuyTemplateButtonimport fromapp/layout.tsx - Remove the
<BuyTemplateButton />component fromapp/layout.tsx - Delete
components/BuyTemplateButton.tsx
Recommended after purchasing or when preparing your project for production.