Added functionality for deleting plants