This explains how to delete objects outside the Illustrator artboard. Also, the export methods of your vector drawing are shown. You can export your file as a raster image or vector file using these methods.
How to remove drawings outside of an artboard in illustrator?
![How to remove drawings outside of an artboard in illustrator? export using artboard](https://illustratordersleri.com/wp-content/uploads/2018/11/Remove-outside-of-artboard.jpg)