Samsung Galaxy A5 2015 (samsung-a5)/Custom Partitioning

=Erasing unused partitions/Custom formatting=

It is safe to wipe partitions /dev/mmcblk0p18-24,/dev/mmcblk0p26 without any harm being done to the bootloader. Erasing these partitions will leave only mainline kernels bootable.

If you dont need recovery mode you also could remove /dev/mmcblk0p25 and /dev/mmcblk0p17.

If you dont need android boot partition you also could remove /dev/mmcblk0p16.

Reverting to stock from this setup
To revert to stock, Download the stock rom and flash it via heimdall.