Instead of deleting a part (or class), you can unload it from your image. Both deleting and unloading do the same thing: unload the part from your image.
To unload a part:
To unload a part or class, you must be the manager of its containing application and the application must be an open edition.