Makes it possible to choose the axis.

This should also work from a script.
Copy delete functionality from the main activity to the script activity.