Added function to delete actors