db/common/src/main/java/org/commonjava/indy/db/common/AbstractStoreDataManager.java
@Override
    public boolean isReadonly( final ArtifactStore store )
    {
        if ( store != null )
        {
            if ( store.getKey().getType() == hosted && ( (HostedRepository) store ).isReadonly() )
            {
                return true;
            }
        }
        return false;
    }
@Override
    public boolean isReadonly( final ArtifactStore store )
    {
        if ( store != null )
        {
            if ( store.getKey().getType() == hosted && ( (HostedRepository) store ).isReadonly() )
            {
                return true;
            }
        }
        return false;
    }
TODO: currently we only check hosted readonly to prevent unexpected removing of both files and repo itself.
We may expand to remote or group in the future to support functions like remote repo "deploy-through".