These are the docs for 12.0, an old version of SpatialOS. The docs for this version are frozen: we do not correct, update or republish them. 14.1 is the newest →

spatial worker clean

Cleans up all workers.


For each worker, runs the ‘Clean’ task, which is specified, either directly or indirectly, in the worker’s ‘spatialos..worker.json’.

By default, this task will perform the steps necessary to clean up the output of the ‘Build’ step.

See the SpatialOS documentation for more information about customising this process.

Default behaviour and specifying worker names:

If run from the root of the application with no arguments, all workers will be affected. If run from within a worker’s directory with no arguments, only that worker will be affected. If worker names are specified on the command line, only those workers will be affected, regardless of where it is run from.

spatial worker clean [worker names]


  -t, --target string   Specify which target to build. Builds all targets when not specified.


  • spatial - SpatialOS project management

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums