droitatedDB/src/main/java/org/droitateddb/EntityService.java
public boolean delete(final E data) {
        Number id = getFieldValue(data, primaryKey);
        if (id == null) {
            throw new IllegalArgumentException("The @PrimaryKey of the given @Entity can not be null");
        }
        return delete(id.longValue());
    }
public boolean delete(final E data) {
        Number id = getFieldValue(data, primaryKey);
        if (id == null) {
            throw new IllegalArgumentException("The @PrimaryKey of the given @Entity can not be null");
        }
        return delete(id.longValue());
    }
Deletes the given {@link Entity} from the database

@param data {@link Entity} that should be deleted
@return <code>true</code> if the {@link Entity} could be deleted, <code>false</code> otherwise
@throws IllegalStateException    When the {@link PrimaryKey} field and its value of the {@link Entity} could not be determined
@throws IllegalArgumentException When the value of the {@link PrimaryKey} field is null