Make it possible to delete targets

Signed-off-by: Henrik Saari <henrik.saari@jollamobile.com>