script-delete

Delete specified .cs files and refresh the Unity AssetDatabase.

Updated Aug 26, 2025
One-click install
npx skills add https://github.com/infotechsrealm/PanicAtThePond --skill script-delete-infotechsrealm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: script-delete
Source: https://github.com/infotechsrealm/PanicAtThePond/tree/main/.claude/skills/script-delete
Command: npx skills add https://github.com/infotechsrealm/PanicAtThePond --skill script-delete-infotechsrealm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of deleting .cs script files, refreshing the AssetDatabase, and waiting for Unity compilation to ensure a smooth workflow.

Core Features & Use Cases

  • File Deletion: Deletes specified .cs files and their .meta counterparts.
  • AssetDatabase Refresh: Triggers an AssetDatabase refresh to maintain project integrity.
  • Unity Compilation: Waits for Unity to finish compiling after the deletion, providing a clean result.
  • Use Case: Ideal for cleaning up unused script files during development without disrupting the Unity environment.

Quick Start

Use the script-delete skill to delete script files 'Assets/Scripts/UnusedScript.cs' and refresh the AssetDatabase.

Frequently Asked Questions about script-delete

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delete a Unity script and refresh the AssetDatabase without breaking compilation?

To delete a Unity script safely, the .cs file and its .meta counterpart must be removed, followed by an AssetDatabase refresh and waiting for Unity compilation to finish. This ensures project integrity and a clean result.

Why does Unity still hold references to a deleted .cs file after removal?

Unity still holds references because the AssetDatabase has not refreshed and the editor has not recompiled. Triggering an AssetDatabase refresh and waiting for Unity compilation after deletion clears these lingering script references.

Can I automate removing multiple unused .cs files and their .meta files in Unity?

You can automate removing multiple unused .cs files and their .meta counterparts by specifying the target file paths for deletion. The process refreshes the AssetDatabase and waits for Unity compilation to complete automatically.

Do I need to wait for Unity to recompile after deleting a script file?

Waiting for Unity to recompile after deleting a script file is required to ensure a smooth workflow. It provides a clean result by confirming that the AssetDatabase has fully updated and resolved the missing .cs file references.

What is the best way to clean up unused Unity scripts during development?

The best way to clean up unused Unity scripts during development is to delete the specified .cs files and their .meta counterparts, then trigger an AssetDatabase refresh and wait for Unity compilation to maintain project integrity.

What happens to the Unity project when you delete a .cs file without refreshing the AssetDatabase?

Deleting a .cs file without refreshing the AssetDatabase disrupts project integrity by leaving stale references. Refreshing the AssetDatabase and waiting for Unity compilation ensures the environment updates smoothly.