Description
Deletes a Roblox object instance from the game. This operation permanently removes the object and all its descendants from the hierarchy.Parameters
Path to the instance to delete (e.g., “game.Workspace.MyPart”)
Example
Use Cases
- Removing objects that are no longer needed
- Cleaning up test objects during development
- Deleting placeholder objects before final build
- Implementing dynamic object management in games
- Resetting level sections by removing and recreating objects
Important Notes
- Deleting a parent object will delete all its children
- Deleted objects cannot be recovered
- Make sure no scripts are referencing the object before deletion
Related Tools
- create_object - Create new objects
- smart_duplicate - Duplicate existing objects